mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Clean up method relying on old transaction journal code.
This commit is contained in:
@@ -54,7 +54,7 @@ final class AmountLess extends AbstractTrigger implements TriggerInterface
|
||||
*/
|
||||
public function triggered(TransactionJournal $journal)
|
||||
{
|
||||
$amount = $journal->amount_positive; // TODO TransactionJournal cannot deliver "amount_positive".
|
||||
$amount = TransactionJournal::amountPositive($journal);
|
||||
$compare = $this->triggerValue;
|
||||
$result = bccomp($amount, $compare, 4);
|
||||
if ($result === -1) {
|
||||
|
Reference in New Issue
Block a user