quentinsf / icsv2ledger

Interactive importing of CSV files to Ledger
196 stars 70 forks source link

Use credit account from input/mapping instead of global one #114

Closed MoritzR closed 6 years ago

MoritzR commented 6 years ago

I want to use budgets like:

assets:budgets:food
assets:budgets:clothing

which means I want to use a different credit account for each transaction.

Currently this is not possible because the global variable self.credit_account is used in the output file. The expexted input prompt could be something like:

2017/12/22 Food Market                       -9
Payee [Food Market] > food_market
Debit Account [Expenses:Food] > expenses:food
Credit Account [Assets:Budgets:Food] > assets:budgets:food
MoritzR commented 6 years ago

Found a way to model budgets without using real asset budgets (see here: https://frdmtoplay.com/envelope-budgeting-with-ledger/ ). I assume that it still would be useful to change the credit account, but I am no longer interested in it and am therefore closing this issue.