I'm using the Rules module and I have two rules:
- A: When flagged, 'Post a journal entry to the ledger'
- B: When unflagged, 'Remove journal entry from the ledger'
Rule A includes also two Rules components with conditions that check if the journal entry is balanced:
If the condition 'balanced' is true: - Post journal entry to the ledger.
If the condition 'unbalanced' is true: - Show a warning on the page and UNFLAG the journal entry.
The problem is that I don't want the Rule B to be triggered inside rule A, which currently happens.
Theoretically I could add a condition to Rule B like 'is balanced' but I don't want to modify other rules in order to prevent the execution of a rule inside a rule.
Is it possible to prevent nested Rules from firing?