Overview
Comment: | Order by transaction ID, not date, as we want the last 10 created transactions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
3e34084cd4567c6c0ae67c1ee2a7d996 |
User & Date: | bohwaz on 2022-01-05 19:57:40 |
Other Links: | manifest | tags |
Context
2022-01-05
| ||
20:25 | Allow to do an opening balance from an open year, but warn about it check-in: eaf0fe8aba user: bohwaz tags: trunk, stable | |
19:57 | Order by transaction ID, not date, as we want the last 10 created transactions check-in: 3e34084cd4 user: bohwaz tags: trunk, stable | |
19:54 | Remove some graphs from year summary, add last 10 transactions below check-in: c36f4042cf user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Accounting/Years.php from [2daaf888c2] to [efb263af2a].
︙ | ︙ | |||
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | static public function listLastTransactions(int $count, array $years): array { $out = []; foreach ($years as $year) { $out[$year->id] = Transactions::listByType($year->id, null); $out[$year->id]->setPageSize($count); } return $out; } static public function getNewYearDates(): array { | > | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | static public function listLastTransactions(int $count, array $years): array { $out = []; foreach ($years as $year) { $out[$year->id] = Transactions::listByType($year->id, null); $out[$year->id]->setPageSize($count); $out[$year->id]->orderBy('id', true); } return $out; } static public function getNewYearDates(): array { |
︙ | ︙ |