redstreet/beancount_reds_importers

Import both legs of postings.

jahagirdar opened this issue · 3 comments

My csv file has the following Columns
Date,Transaction Title,Amount,Paid from Account,Credit to Account,Receipt

e.g.
20/04/2019,Fuel,1000,BankCard,Travel,https://drive.google.com/image_url

In my custom_init I am setting header_map to
'Date': 'date',
'Transaction Title': 'memo',
'Amount': 'Amount',

How should I map the remaining 3 columns?

What would you like the result to be? If you want to ignore them, no need to do anything further. If you want to do anything specific with them, you might have to write a couple lines of code to do so.

I eventually want it to be

2019-04-20 * "Fuel"
    Assets:INR:BankCard -1000 INR
    Expenses:INR:Travel
    document "https://drive.google.com/image_url"

See

def build_metadata(self, file, metatype=None, data={}):
return {'filing_account': self.config['main_account']}