Skip to content

Instantly share code, notes, and snippets.

@mcr
Created February 6, 2017 17:30
Show Gist options
  • Save mcr/e6f78eb106e44d88cc0852f7543c7539 to your computer and use it in GitHub Desktop.
Save mcr/e6f78eb106e44d88cc0852f7543c7539 to your computer and use it in GitHub Desktop.
Documentation for Chart of Account CSV upload for LedgerSMB
based upon code at: https://github.com/ledgersmb/LedgerSMB/blob/master/lib/LedgerSMB/Scripts/import_csv.pm#L308
There are 9 columns, 0-9. In spreadsheet terms "A" through "I"
A/0 - account number, like "1001"
B/1 - description, free form text
C/2 - charttype: 'A' for account, 'H' for heading
D/3 - category: A = asset, L = liability, Q = Equity, I = Income, E = expense
E/4 - contra: f for regular account, t for contra accounts, such as Liability and Expense
F/5 - tax: t if a tax account, f otherwise
G/6 - linked/drop-down list.
H/7 - header, no longer used.
I/8 - GIFI account number
linked is a colon seperated list of drop-downs in which the account will appear, and contains names like:
AP
AP_amount
AP_overpayment
AP_paid
AP_paid:IC_expense
AP_tax
AR
AR_amount
AR_paid
AR_paid:AP_paid
AR_tax
IC
IC_cogs
IC_expense
IC_income
IC_sale
IC_taxpart
IC_taxservice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment