Overview
Comment: | Fix saving a new validated transaction when reopening a year |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
d906546501efe6cd0b35d23229a0cba9 |
User & Date: | bohwaz on 2021-12-04 14:47:10 |
Other Links: | manifest | tags |
Context
2021-12-04
| ||
21:22 | For some weird case where the script tag is not found, use the html tag to convey the version hash check-in: 381857325d user: bohwaz tags: trunk, stable | |
14:47 | Fix saving a new validated transaction when reopening a year check-in: d906546501 user: bohwaz tags: trunk, stable | |
01:40 | Fix Atom feed validity check-in: 9363870574 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Entities/Accounting/Transaction.php from [196989c6b1] to [fa14f6e4a3].
︙ | ︙ | |||
399 400 401 402 403 404 405 | } return $sum; } public function save(): bool { | | | 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | } return $sum; } public function save(): bool { if ($this->validated && !(isset($this->_modified['validated']) && $this->_modified['validated'] === 0)) { throw new ValidationException('Il n\'est pas possible de modifier une écriture qui a été validée'); } $exists = $this->exists(); $db = DB::getInstance(); |
︙ | ︙ |