Sets the Tax value in an Invoice
The ID of the Invoice being modified
The amount of Tax set for the Invoice, 1 is considered a euro (e.g 2.49 => €2.49)
FM_api('Invoice_setDiscountTax',[ 'id'=>'697943', 'val'=>'2' ]);
{"ok":1}
If the "id" parameter is missing or has a value less than 1:
If the "val" parameter is missing:
If the Invoice being modified has its Status set as Paid:
If the "val" parameter value contains non-numeric characters (e.g a-z):
Last updated 2 years ago
{"error":"missing or invalid parameter: id"}
{"error":"missing or invalid parameter: val"}
{"error":"cannot edit invoices that are marked Paid"}
{"error":"invalid discount tax"}