_setDiscount
Parameters
id
val
Example
FM_api('Invoice_setDiscount',[
'id'=>'30151',
'val'=>'15'
]);Result
On Success
{"ok":1}On Failure
Last updated
FM_api('Invoice_setDiscount',[
'id'=>'30151',
'val'=>'15'
]);{"ok":1}Last updated
{"error":"missing or invalid parameter: id"}{"error":"missing or invalid parameter: val"}{"error":"cannot edit invoices that are marked Paid"}{"error":"invalid discount"}