Overview
Comment: | Transform debt and credit payments in advanced transactions |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
5595d3ca259d9cbd561253901d043f62 |
User & Date: | bohwaz on 2021-03-01 02:29:44 |
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-03-01
| ||
17:08 | Version 1.0.6: make sure that debts/credits payment transactions are treated as advanced check-in: 322e184f4b user: bohwaz tags: trunk, stable, 1.0.6 | |
02:29 | Transform debt and credit payments in advanced transactions check-in: 5595d3ca25 user: bohwaz tags: trunk, stable | |
2021-02-25
| ||
20:54 | Add "first connection" to label for lost password check-in: a1a07cf6fa user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [cabf196b95] to [022997b439].
︙ | ︙ | |||
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 471 | else { $details = self::getTypesDetails(); if (!array_key_exists($type, $details)) { throw new ValidationException('Type d\'écriture inconnu'); } if (!empty($this->_related) && ($type == self::TYPE_DEBT || $type == self::TYPE_CREDIT)) { $this->set('type', self::TYPE_ADVANCED); } elseif (!$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é'); } |
︙ | ︙ |