Files @ 8aa83cee1e89
Branch filter:

Location: NPO-Accounting/npo-ledger-cli/rounding/devnotes.md

bkuhn
E.g. of invoice for conference w/ split IncomeType

An example of an invoice for a conference where the income type is split
between RBI and Donations. Include a ledger reporting example that
shows the total of donations, and explain in the documentation why
that's useful.
1
2
3
4
5
Purpose: Adding new sub-directive under commodity directive in ledger 

  Adding a new sub directive was easy. They are defined in textual.cc. To add under commodity directive look for function void instance_t::commodity_directive(char * line). Each sub directive is a keyword to be matched. Simply add a new if else statement checking for the keyword. Add suitable code.  Arguments passed to the sub directive are held by variable 'b'.