mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Added method for triggers to check whether they match all transactions
This commit is contained in:
		| @@ -62,4 +62,13 @@ class AmountMore implements TriggerInterface | ||||
|         return false; | ||||
|  | ||||
|     } | ||||
|      | ||||
|     /** | ||||
|      * Checks whether this trigger will match all transactions | ||||
|      * This happens when the trigger_value is zero | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function matchesAnything() {  | ||||
|         return bccomp('0', $this->trigger->trigger_value) === 0;  | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user