mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-27 01:11:37 -06:00
Added method to RuleTrigger object as well
This commit is contained in:
parent
7c8c82edd7
commit
70e72c246d
@ -36,4 +36,12 @@ class RuleTrigger extends Model
|
|||||||
{
|
{
|
||||||
return $this->belongsTo('FireflyIII\Models\Rule');
|
return $this->belongsTo('FireflyIII\Models\Rule');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Checks whether this trigger will match all transactions
|
||||||
|
* For example: amount > 0 or description starts with ''
|
||||||
|
*/
|
||||||
|
public function matchesAnything() {
|
||||||
|
return TriggerFactory::getTrigger($this, new TransactionJournal)->matchesAnything();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user