Overview
Comment: | Add 'user added account' column to accounts export |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
e372034ebb074528c0747e0b282ca4cc |
User & Date: | bohwaz on 2022-01-05 12:48:38 |
Other Links: | manifest | tags |
Context
2022-01-05
| ||
12:56 | Allow import of user-added column in accounts check-in: d8df4c7ccb user: bohwaz tags: trunk, stable | |
12:48 | Add 'user added account' column to accounts export check-in: e372034ebb user: bohwaz tags: trunk, stable | |
12:32 | Move new year action to a button for consistency check-in: 669d1bf5fa user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Accounting/Accounts.php from [919e36e1c3] to [0002b587de].
︙ | ︙ | |||
71 72 73 74 75 76 77 | } /** * Return all accounts from current chart */ public function export(): \Generator { | | > > > | 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | } /** * Return all accounts from current chart */ public function export(): \Generator { $res = $this->em->DB()->iterate($this->em->formatQuery('SELECT code, label, description, position, type, user AS added FROM @TABLE WHERE id_chart = ? ORDER BY code COLLATE NOCASE;'), $this->chart_id); foreach ($res as $row) { $row->type = Account::TYPES_NAMES[$row->type]; $row->position = Account::POSITIONS_NAMES[$row->position]; $row->added = $row->added ? 'Ajouté' : ''; yield $row; } } /** * Return only analytical accounts */ |
︙ | ︙ |