I have a expenses.csv.rules file which is included by the rules files of different bank accounts: personal-bank.csv.rules and family-bank.csv.rules. Bank rule files parse the CSV fields and set the account1 whereas the common expenses csv file sets the description and account2 (the category of expense). The description and category of the expenses are the same for my personal and familiar books.
One example of one entry of my expenses.csv.rules:
if carrefour
description carrefour | some explanation
account2 expenses:supermarket
What I would like to get is to set account2 toexpenses:family:supermarket if the expenses.csv.rules file was included by the family-bank.csv.rules file and to set expenses:personal:supermarket if the expenses.csv.ruleswas included by personal-bank.csv.rules.
Say for example that if I spent money at a place, I’d like it to be expense:place but if it was on the 1st of january, I’d like it to be expense:party.