GnuCash
5.6-150-g038405b370+
|
Set up a set of books for business feature use. More...
Go to the source code of this file.
Variables | |
simple_business_create.s = Session(argv[1], SessionOpenMode.SESSION_NEW_OVERWRITE) | |
simple_business_create.book = s.book | |
simple_business_create.root = book.get_root_account() | |
simple_business_create.commod_table = book.get_table() | |
simple_business_create.CAD = commod_table.lookup('CURRENCY', 'CAD') | |
simple_business_create.a = Account(book) | |
simple_business_create.a2 = Account(book) | |
simple_business_create.a3 = Account(book) | |
simple_business_create.a4 = Account(book) | |
simple_business_create.a5 = Account(book) | |
simple_business_create.a6 = Account(book) | |
simple_business_create.new_customer = Customer(book, "1", CAD, "Bill & Bob Industries") | |
simple_business_create.address = new_customer.GetAddr() | |
simple_business_create.new_employee = Employee(book, "2", CAD, "Reliable employee") | |
simple_business_create.new_vendor = Vendor(book, "3", CAD, "Dependable vendor") | |
simple_business_create.new_job = Job(book, "4", new_vendor, "Good clean, fun") | |
simple_business_create.tax_table | |
simple_business_create.invoice_customer = Invoice(book, "5", CAD, new_customer) | |
simple_business_create.customer_extract = invoice_customer.GetOwner() | |
simple_business_create.invoice_employee = Invoice(book, "6", CAD, new_employee) | |
simple_business_create.employee_extract = invoice_employee.GetOwner() | |
simple_business_create.invoice_vendor = Invoice(book, "7", CAD, new_vendor) | |
simple_business_create.vendor_extract = invoice_vendor.GetOwner() | |
simple_business_create.invoice_job = Invoice(book, "8", CAD, new_job) | |
simple_business_create.job_extract = invoice_job.GetOwner() | |
simple_business_create.invoice_entry = Entry(book, invoice_customer) | |
simple_business_create.vendor_bill_returns = book.BillLookupByID("7") | |
simple_business_create.customer_invoice_returns = book.InvoiceLookupByID("5") | |
simple_business_create.customer_returns = book.CustomerLookupByID("1") | |
Set up a set of books for business feature use.
Definition in file simple_business_create.py.
simple_business_create.tax_table |
Definition at line 131 of file simple_business_create.py.