Overview
Comment: | Fix disabling of accounting when creating a service for a user |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c2737395b8ab9746563680a0e00719ac |
User & Date: | bohwaz on 2022-08-15 21:38:36 |
Other Links: | manifest | tags |
Context
2022-08-15
| ||
21:39 | Fix amount left to pay when there are no payments done yet check-in: 9e2377730d user: bohwaz tags: trunk, stable | |
21:38 | Fix disabling of accounting when creating a service for a user check-in: c2737395b8 user: bohwaz tags: trunk | |
2022-08-12
| ||
15:24 | Fix duplicate accounts of simple transactions check-in: f2d1709bf1 user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/static/scripts/service_form.js from [d1f9694e15] to [1677b4d3ff].
︙ | ︙ | |||
29 30 31 32 33 34 35 | // Toggle accounting part of the form var accounting = elm.getAttribute('data-account') ? true : false; g.toggle('.accounting', accounting); if (accounting && create) { $('#f_create_payment_1').checked = true; | | | 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | // Toggle accounting part of the form var accounting = elm.getAttribute('data-account') ? true : false; g.toggle('.accounting', accounting); if (accounting && create) { $('#f_create_payment_1').checked = true; let btn = $('#f_account_selector_container').querySelector('button'); btn.value = btn.value.replace(/&year=\d+/, '') + '&year=' + elm.getAttribute('data-year'); } // Fill the amount paid by the user if (amount && create) { $('#f_amount').value = g.formatMoney(amount); } |
︙ | ︙ |