Add an invoice to a set of books.
More...
Go to the source code of this file.
|
def | simple_invoice_insert.gnc_numeric_from_decimal (decimal_value) |
|
|
| simple_invoice_insert.s = Session(argv[1], SessionOpenMode.SESSION_NORMAL_OPEN) |
|
| simple_invoice_insert.book = s.book |
|
| simple_invoice_insert.root = book.get_root_account() |
|
| simple_invoice_insert.commod_table = book.get_table() |
|
| simple_invoice_insert.CAD = commod_table.lookup('CURRENCY', 'CAD') |
|
| simple_invoice_insert.my_customer = book.CustomerLookupByID(argv[2]) |
|
| simple_invoice_insert.assets = root.lookup_by_name("Assets") |
|
| simple_invoice_insert.receivables = assets.lookup_by_name("Receivables") |
|
| simple_invoice_insert.income = root.lookup_by_name("Income") |
|
| simple_invoice_insert.invoice = Invoice(book, argv[3], CAD, my_customer ) |
|
| simple_invoice_insert.description = argv[4] |
|
def | simple_invoice_insert.invoice_value = gnc_numeric_from_decimal(Decimal(argv[5])) |
|
| simple_invoice_insert.tax_table = book.TaxTableLookupByName('good tax') |
|
| simple_invoice_insert.invoice_entry = Entry(book, invoice) |
|
Add an invoice to a set of books.
- Author
- Mark Jenkins, ParIT Worker Co-operative mark@.nosp@m.pari.nosp@m.t.ca
Definition in file simple_invoice_insert.py.