Update an invoice.
The ID of the Appointment.
Float value to discount.
Float value of Postage and Packaging.
Float value how much VAT to discount.
Float value how much VAT is on Postage and Packaging.
Number of the invoice.
Optional. If this invoice is for a PurchaseOrder, what is the PurchaseOrder's number.
Array of invoice rows. Each row has 6 columns:
- Text description.
- Net price of that item.
- Amount of items.
- Net total (net price * amt).
- How much tax to apply.
- Gross total (net total + tax percentage).
Optional text field.
Date of the invoice.
FM_api('Appointment_invoiceUpdate', ['id' => '222402', 'discount' => '.1', 'pandp' => '13.99', 'discount_vat' => '.05', 'pandp_vat' => '2.99', 'doc_no' => 'test001', 'order_no' => '', 'rows' => [['item 001', '1.99', '10', '19.9', '34.5', '26.77']], 'invoice_number' => '0001', 'notes' => 'This is an invoice note', 'cdate' => date('Y-m-d')]);