diff --git a/app/TransactionRules/Engine/RuleEngine.php b/app/TransactionRules/Engine/RuleEngine.php index e8e0470f7f..b6ef7964b2 100644 --- a/app/TransactionRules/Engine/RuleEngine.php +++ b/app/TransactionRules/Engine/RuleEngine.php @@ -229,7 +229,7 @@ class RuleEngine $validTrigger = ('store-journal' === $trigger->trigger_value && self::TRIGGER_STORE === $this->triggerMode) || ('update-journal' === $trigger->trigger_value && self::TRIGGER_UPDATE === $this->triggerMode); - return $validTrigger && ($this->allRules || in_array($rule->id, $this->rulesToApply, true)); + return $validTrigger && ($this->allRules || in_array($rule->id, $this->rulesToApply, true)) && true === $rule->active; } }