piecash icon indicating copy to clipboard operation
piecash copied to clipboard

Direct acces to children account

Open UmeSiyah opened this issue 3 years ago • 2 comments

Hello,

I use your package to import a csv from my bank to gnucash (I also do some cleaning etc.) and on my work I asked myself if you thought to implemente a direct acces to a children account. book.account(name="Expenses:Auto:Repair and Maintenance") -> Account<Expenses:Auto:Repair and Maintenance[EUR]> instead of book.account(name="Expenses").children(name="Auto").children(name="Repair and Maintenance")

Because in my book I have some account with the same name but different root. Exemple : Account<Expenses:Auto BMW:Repair and Maintenance[EUR]> Account<Expenses:Auto AUDI:Repair and Maintenance[EUR]>

so book.account(name="Repair and Maintenance") will not work. thanks

UmeSiyah avatar Nov 17 '21 15:11 UmeSiyah

I think you can also filter on the full/long name of the account.

sdementen avatar Nov 17 '21 17:11 sdementen

Oh thanks ! I didn't know for the fullname attribut.

UmeSiyah avatar Nov 18 '21 10:11 UmeSiyah