Overview
Comment: | Fix import when line reference is missing |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
53c084ef61c8a077151d0c0503500cb5 |
User & Date: | bohwaz on 2022-03-03 13:43:35 |
Other Links: | manifest | tags |
Context
2022-03-03
| ||
13:56 | Fix reference to line id when import is incomplete check-in: 018558d051 user: bohwaz tags: trunk, stable | |
13:43 | Fix import when line reference is missing check-in: 53c084ef61 user: bohwaz tags: trunk, stable | |
11:49 | Add change_user_password shell script check-in: 0b6b00c3f0 user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Accounting/Transactions.php from [8effb4c3b2] to [bfe80b85da].
︙ | ︙ | |||
448 449 450 451 452 453 454 | throw new UserException(sprintf('le compte "%s" n\'existe pas dans le plan comptable', $row->account)); } $data = $data + [ 'credit' => $row->credit ?: 0, 'debit' => $row->debit ?: 0, 'id_account' => $id_account, | | | | | 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 | throw new UserException(sprintf('le compte "%s" n\'existe pas dans le plan comptable', $row->account)); } $data = $data + [ 'credit' => $row->credit ?: 0, 'debit' => $row->debit ?: 0, 'id_account' => $id_account, 'reference' => $row->line_reference ?? null, 'label' => $row->line_label ?? null, 'reconciled' => $row->reconciled ?? false, ]; if ($row->line_id && !$ignore_ids) { $line = $transaction->getLine((int)$row->line_id); if (!$line) { throw new UserException(sprintf('le numéro de ligne "%s" n\'existe pas dans l\'écriture "%s"', $row->line_id, $transaction->id ?: 'à créer')); |
︙ | ︙ |