Overview
Comment: | Accounting: import transaction status |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
bce1380f60c303673c7ce2885eb0a12f |
User & Date: | bohwaz on 2022-04-12 18:18:36 |
Other Links: | manifest | tags |
Context
2022-04-14
| ||
14:27 | Fix [cad6c2d833743d7a6ab465e6569a713333bf5847] add ability to link when creating an advanced transaction check-in: 3912fb3b0a user: bohwaz tags: trunk, stable | |
2022-04-12
| ||
18:18 | Accounting: import transaction status check-in: bce1380f60 user: bohwaz tags: trunk, stable | |
2022-04-08
| ||
12:40 | Cheque deposit: Copy line labels to deposit check-in: 5977fc6b5c user: bohwaz tags: trunk, stable | |
Changes
Modified src/include/lib/Garradin/Accounting/Transactions.php from [e75f7e0206] to [c1730297d5].
︙ | ︙ | |||
367 368 369 370 371 372 373 374 375 376 377 378 379 380 | throw new UserException(sprintf('le type "%s" est inconnu', $row->type)); } $transaction->type = $types[$row->type]; $fields = array_intersect_key((array)$row, array_flip(['label', 'date', 'notes', 'reference'])); $transaction->importForm($fields); } $data = []; if (!empty($row->analytical)) { $id_analytical = $accounts->getIdFromCode($row->analytical); | > > > > > > > > > > > > > > | 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 | throw new UserException(sprintf('le type "%s" est inconnu', $row->type)); } $transaction->type = $types[$row->type]; $fields = array_intersect_key((array)$row, array_flip(['label', 'date', 'notes', 'reference'])); $transaction->importForm($fields); // Set status if (!empty($row->status)) { $status_list = array_map('trim', explode(',', $row->status)); $status = 0; foreach (Transaction::STATUS_NAMES as $k => $v) { if (in_array($v, $status_list)) { $status |= $k; } } $transaction->status = $status; } } $data = []; if (!empty($row->analytical)) { $id_analytical = $accounts->getIdFromCode($row->analytical); |
︙ | ︙ |