Deleting a Proforma Invoice
Basics
Deleting a proforma invoice is illustrated in the following example file:
./examples/document/delete_proforma.php
Based on the order number, multiple proforma invoices can be deleted. If deleting any of the proforma invoices fails, we perform a rollback.
// Deleting a proforma invoice by invoice number:
$agent->deleteProforma('D-TESZT-001');
// Deleting a proforma invoice by order number:
$agent->deleteProforma('TESZT-001', Proforma::FROM_ORDER_NUMBER);
Expected and Optional Inputs
Proforma Invoice Data
Description | Field | Type | Required | Default Value |
---|---|---|---|---|
Invoice number | invoiceNumber | string | yes | |
Order number | orderNumber | string |