Overview
Comment: | Ajout bouton "rapprocher et aller au mois suivant" |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA1: |
068e00279ad6e3be2a3b40379ba12175 |
User & Date: | bohwaz on 2018-04-28 20:29:11 |
Other Links: | manifest | tags |
Context
2018-04-28
| ||
20:38 | Filtrer les comptes au solde nul du compte de résultat, aussi. check-in: 5c87e83d00 user: bohwaz tags: trunk, stable | |
20:29 | Ajout bouton "rapprocher et aller au mois suivant" check-in: 068e00279a user: bohwaz tags: trunk, stable | |
18:36 | Remettre le focus sur la date au chargement de la page, plus facile pour gérer la saisie en masse check-in: b80a7b77ad user: bohwaz tags: trunk, stable | |
Changes
Modified src/templates/admin/compta/banques/rapprocher.tpl from [d9b0b07ead] to [8c929d9cb6].
︙ | ︙ | |||
85 86 87 88 89 90 91 92 93 94 95 | <th>Solde au {$fin|format_sqlite_date_to_french}</th> </tr> </tfoot> </table> <p class="submit"> {csrf_field key="compta_rapprocher_%s"|args:$compte.id} <input type="submit" name="save" value="Enregistrer" /> </p> </form> {include file="admin/_foot.tpl"} | > | 85 86 87 88 89 90 91 92 93 94 95 96 | <th>Solde au {$fin|format_sqlite_date_to_french}</th> </tr> </tfoot> </table> <p class="submit"> {csrf_field key="compta_rapprocher_%s"|args:$compte.id} <input type="submit" name="save" value="Enregistrer" /> <input type="submit" name="save_next" value="Enregistrer et aller au mois suivant →" class="minor" /> </p> </form> {include file="admin/_foot.tpl"} |
Modified src/www/admin/compta/banques/rapprocher.php from [43c86f7162] to [328701b299].
︙ | ︙ | |||
34 35 36 37 38 39 40 | $debut = date('Y-m-01'); $fin = date('Y-m-t'); } $journal = $rapprochement->getJournal($compte->id, $debut, $fin, $solde_initial, $solde_final, (bool) qg('sauf')); // Enregistrement des cases cochées | | > > > | > > > > > > | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | $debut = date('Y-m-01'); $fin = date('Y-m-t'); } $journal = $rapprochement->getJournal($compte->id, $debut, $fin, $solde_initial, $solde_final, (bool) qg('sauf')); // Enregistrement des cases cochées if ((f('save') || f('save_next')) && $form->check('compta_rapprocher_' . $compte->id)) { try { $rapprochement->record($compte->id, $journal, f('rapprocher'), $user->id); if (f('save')) { Utils::redirect(Utils::getSelfURL()); } else { $next = Utils::modifyDate($debut, '+1 month', true); Utils::redirect(sprintf('%scompta/banques/rapprocher.php?id=%s&debut=%s&fin=%s&sauf=%s', ADMIN_URL, $compte->id, date('Y-m-01', $next), date('Y-m-t', $next), (int) qg('sauf'))); } } catch (UserException $e) { $form->addError($e->getMessage()); } } |
︙ | ︙ |