Overview
Comment: | Fix: debts and credits were marked as non-paid when edited, even if already marked as paid |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
5b548dd490857d966fd3764851b20c43 |
User & Date: | bohwaz on 2021-02-20 22:09:11 |
Other Links: | manifest | tags |
Context
2021-05-10
| ||
12:19 | Re-add missing merges before [93aeaacac6] check-in: 561aebe80c user: bohwaz tags: trunk, stable | |
2021-02-20
| ||
22:32 | Automatically change the expiry date when changing the subscription date for a subscription with a duration check-in: c8a60b30e0 user: bohwaz tags: trunk, stable | |
22:09 | Fix: debts and credits were marked as non-paid when edited, even if already marked as paid check-in: 5b548dd490 user: bohwaz tags: trunk, stable | |
2021-02-17
| ||
18:57 | Fix issue with date fields in list check-in: 31ce87dca2 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [73262383c7] to [cabf196b95].
︙ | ︙ | |||
454 455 456 457 458 459 460 | else { $details = self::getTypesDetails(); if (!array_key_exists($type, $details)) { throw new ValidationException('Type d\'écriture inconnu'); } | | < < < | 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 | else { $details = self::getTypesDetails(); if (!array_key_exists($type, $details)) { throw new ValidationException('Type d\'écriture inconnu'); } if (!$this->exists() && ($type == self::TYPE_DEBT || $type == self::TYPE_CREDIT)) { $this->addStatus(self::STATUS_WAITING); } if (empty($source['amount'])) { throw new UserException('Montant non précisé'); } $amount = $source['amount']; |
︙ | ︙ |