mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-26 08:51:12 -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');
|
||||
}
|
||||
|
||||
/**
|
||||
* 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