Closed ckcollab closed 5 years ago
python-quickbooks
eg creation:
from quickbooks.objects import (Invoice, SalesItemLineDetail, SalesItemLine) customer_ref = Ref() customer_ref.value = 123 customer_ref.name = 'Ivan Petrov' customer_ref.type = 'Customer' # or customer_ref = Customer.get(123, qb=client).to_ref() line_detail = SalesItemLineDetail() line_detail.UnitPrice = 100 # in dollars line_detail.Qty = 1 # quantity can be decimal line = SalesItemLine() line.Amount = 100 # in dollars line.SalesItemLineDetail = line_detail invoice = Invoice() invoice.CustomerRef = customer_ref invoice.Line = [line] client = QuickBooks(...) invoice.save(qb=client)
python-quickbooks
eg creation: