Add checks to fix #3119

This commit is contained in:
James Cole
2020-02-14 05:40:46 +01:00
parent db05839b87
commit 400c0ccaca

View File

@@ -99,7 +99,7 @@ class FixUnevenAmount extends Command
)
);
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
return;
}
@@ -119,7 +119,7 @@ class FixUnevenAmount extends Command
);
Transaction::where('transaction_journal_id', $journal->id ?? 0)->forceDelete();
TransactionJournal::where('id', $journal-> ?? 0)->forceDelete();
TransactionJournal::where('id', $journal->description ?? 0)->forceDelete();
return;
}