redstreet / beancount_reds_importers

Simple ingesting tools for Beancount (plain text, double entry accounting software). More importantly, a framework to allow you to easily write your own importers.
GNU General Public License v3.0
104 stars 37 forks source link

Workday/Paycheck Not Recognized #37

Closed arnold-c closed 1 year ago

arnold-c commented 1 year ago

Hi Red,

Really liking your Beancount importers, so thanks for publishing them.

I'm trying to use the Workday importer to process everything related to my paycheck in one go, but unfortunately I'm getting a blank result to bean-identify _config.py workday.xlsx.

My _config.py looks like this:

from unittest import skip
from beancount.ingest.importers.csv import Importer as CSVImporter, Col
from beancount_reds_importers import workday

paycheck_template = {

        'EE Taxes': {
            "Federal Withholding": "Expenses:US:Taxes:Federal"
        }

    }

workday = workday.Importer({'desc': "Work",
    'main_account': 'Income:US:Hooli:Gross-Income',
    'paycheck_template': paycheck_template,
    'currency': 'USD',
})

CONFIG = [
    workday
    ]

With a sub-table heading "EE Taxes", and "Federal Withholding" being a row within that table.

I'm sure I'm missing something obvious, but I've been going round in circles so thought I'd ask just in case there was something else going on.

redstreet commented 1 year ago

Hello there, Glad they're useful!

Ah, the Workday importer is the hackiest one of them all, since I only have one example, and have no idea how standardized these files are :). bean-identify is not identifying your file likely because of one of these lines:

Either or both of those are probably not true for you. So I'd recommend simply copying that workday importer and making your own, and modifying those lines. Let me know if you still run into issues.

arnold-c commented 1 year ago

Amazing. Thanks so much for the quick response. Adding "_Complete" to the filename fixed it so I'll close the issue

redstreet commented 1 year ago

Great! You can set filename_pattern in your config to something that matches your file. I should probably document this somewhere.