Overview
Comment: | Fix default date when paying a debt was not formatted properly, fix [cc92d787154af38440ecfcc93a8b68815f406699] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
b1e7b09974f685df30187da4be79b51c |
User & Date: | bohwaz on 2022-09-02 01:29:27 |
Other Links: | manifest | tags |
Context
2022-09-02
| ||
13:36 | Fix Service_User for PHP 8 check-in: 0b368cef2e user: bohwaz tags: trunk, stable | |
01:29 | Fix default date when paying a debt was not formatted properly, fix [cc92d787154af38440ecfcc93a8b68815f406699] check-in: b1e7b09974 user: bohwaz tags: trunk, stable | |
01:17 | Assign automatically a type to a transaction if it was not specified in the CSV file check-in: 5f33bded63 user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/acc/transactions/payoff.php from [56988c3eb1] to [bcca3ec0bf].
︙ | ︙ | |||
27 28 29 30 31 32 33 | $chart = $current_year->chart(); $accounts = $chart->accounts(); $date = new \DateTime; if ($session->get('acc_last_date')) { | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | $chart = $current_year->chart(); $accounts = $chart->accounts(); $date = new \DateTime; if ($session->get('acc_last_date')) { $date = \DateTime::createFromFormat('!Y-m-d', $session->get('acc_last_date')); } if (!$date || ($date < $current_year->start_date || $date > $current_year->end_date)) { $date = $current_year->start_date; } $transaction->date = $date; |
︙ | ︙ |