This commit is contained in:
James Cole 2019-08-27 07:28:39 +02:00
parent 57961de214
commit 7720519076

View File

@ -95,7 +95,7 @@ trait TransactionValidation
$accountValidator = app(AccountValidator::class);
foreach ($transactions as $index => $transaction) {
$originalType = $this->getOriginalType($transaction['transaction_journal_id'] ?? 0);
$originalType = $this->getOriginalType((int)($transaction['transaction_journal_id'] ?? 0));
$originalData = $this->getOriginalData($transaction['transaction_journal_id'] ?? 0);
$transactionType = $transaction['type'] ?? $originalType;
$accountValidator->setTransactionType($transactionType);