Overview
Comment:Fix error when referencing advance transaction name
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA3-256: 4c25494b5c0d06536ca417799d2bfb1a7817374ece86d3735a3cfa5ce8285feb
User & Date: bohwaz on 2022-02-18 18:30:32
Other Links: manifest | tags
Context
2022-02-25
20:09
Fix wkhtmltopdf access to local files, thanks @jc check-in: b66b6a6756 user: bohwaz tags: trunk, stable
2022-02-18
18:30
Fix error when referencing advance transaction name check-in: 4c25494b5c user: bohwaz tags: trunk, stable
03:24
Fix export of a specific year check-in: de170bd61a user: bohwaz tags: trunk, stable
Changes

Modified src/include/lib/Garradin/Accounting/Transactions.php from [607299f698] to [5cdaffd0f4].

329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

					if (!$has_transaction && null === $transaction) {
						throw new UserException('cette ligne n\'est reliée à aucune écriture');
					}
				}
				else {
					if (empty($row->type)) {
						$row->type = $types[Transaction::TYPE_ADVANCED];
					}

					$transaction = null;
				}

				// Find or create transaction
				if (null === $transaction) {







|







329
330
331
332
333
334
335
336
337
338
339
340
341
342
343

					if (!$has_transaction && null === $transaction) {
						throw new UserException('cette ligne n\'est reliée à aucune écriture');
					}
				}
				else {
					if (empty($row->type)) {
						$row->type = Transaction::TYPES_NAMES[Transaction::TYPE_ADVANCED];
					}

					$transaction = null;
				}

				// Find or create transaction
				if (null === $transaction) {