{
"name": "By amount, currency, tag, AND specific counterpart",
"description": "Invoices worth more than 1000 EUR, from a specific counterpart AND with specific tags",
"trigger": {
"all": [
"{event_name == 'submitted_for_approval'}",
"{invoice.amount > 100000}",
"{invoice.currency == 'EUR'}",
"{invoice.counterpart_id == '398b2748-b255-46da-b8dc-a01219539ec8'}",
"{'d566f374-463a-4a07-b252-2eb0200d62ce' in invoice.tags.id}",
"{'398b2748-b255-46da-b8dc-a01219539ec9' in invoice.tags.id}"
]
},
"script": [
...
]
}