mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-18 10:39:28 +00:00
Added method to RuleTrigger object as well
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user