Set the Status for an Invoice.

Parameters

id

The ID of the Invoice on which the status will be changed.

val

The status to be set for the Invoice. -1 - Draft, 0 - Quoted, 1 - Invoiced, 2 - Paid, 3 - Cancelled

Example

FM_api('Invoice_setStatus', ['id' => '10', 'val' => '1']);

Result

On Success