Overview
Comment: | Fix simple view for all, fix [e8c01de2d7e5b8fca77684001df4035f9fbdeb69] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
0b18f0c0f489ca291803e188815c3f81 |
User & Date: | bohwaz on 2022-06-22 14:19:43 |
Other Links: | manifest | tags |
Context
2022-06-22
| ||
14:20 | Improve new year screen after year close check-in: 2ed449bbd8 user: bohwaz tags: trunk, stable | |
14:19 | Fix simple view for all, fix [e8c01de2d7e5b8fca77684001df4035f9fbdeb69] check-in: 0b18f0c0f4 user: bohwaz tags: trunk, stable | |
2022-06-21
| ||
01:18 | Add a client-side error message (validity JS API) when a list custom input has not been selected Also go around Chrome bug of hidden required fields blocking submit check-in: 8f67d4300a user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/acc/accounts/simple.php from [1ec47cd699] to [83f17410b3].
︙ | ︙ | |||
9 10 11 12 13 14 15 | if (!CURRENT_YEAR_ID) { Utils::redirect(ADMIN_URL . 'acc/years/?msg=OPEN'); } $year = $current_year; $types = [ | | | | | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | if (!CURRENT_YEAR_ID) { Utils::redirect(ADMIN_URL . 'acc/years/?msg=OPEN'); } $year = $current_year; $types = [ -1 => 'Toutes', Transaction::TYPE_REVENUE => 'Recettes', Transaction::TYPE_EXPENSE => 'Dépenses', Transaction::TYPE_TRANSFER => 'Virements', Transaction::TYPE_DEBT => 'Dettes', Transaction::TYPE_CREDIT => 'Créances', Transaction::TYPE_ADVANCED => 'Saisies avancées', ]; $type = qg('type'); if (!array_key_exists($type, $types)) { $type = key($types); } $list = Transactions::listByType(CURRENT_YEAR_ID, $type == -1 ? null : $type); $list->setTitle(sprintf('Suivi - %s', $types[$type])); $list->loadFromQueryString(); $can_edit = $session->canAccess($session::SECTION_ACCOUNTING, $session::ACCESS_ADMIN) && !$year->closed; $tpl->assign(compact('type', 'list', 'types', 'can_edit', 'year')); $tpl->display('acc/accounts/simple.tpl'); |