Invoice save

From Catglobe Wiki
Revision as of 10:00, 2 January 2018 by Nguyenduyan (talk | contribs) (Created page with "Category:Cost {{HelpFiles}} = Invoice_save = == Syntax == Invoice_save (array invoiceObject); == Arguments == array ''invoiceObject'' == Return type == Empty ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



Invoice_save

Syntax

Invoice_save (array invoiceObject);

Arguments

array invoiceObject

Return type

Empty

Example

string ledgerName = "test4";
string ledgerEntryDescription = "123";
array ledgerEntry = LedgerEntry_new(ledgerName, ledgerEntryDescription);
string invoiceName = "test1";
number parentResourceId = 11088827;
number eraningUserRId = 10768810;
array invoiceDate = getCurrentDateTime();
array dueDate = getCurrentDateTime();
number templateInvoiceRId = 2111;
array invoice = Invoice_new (invoiceName, parentResourceId, eraningUserRId, invoiceDate, dueDate, templateInvoiceRId);
invoice[INVOICE_LEDGER] = {ledgerEntry};
Invoice_save(invoice);