InvoicePaymentTerm Property
Specifies the term by which the invoice payment is due.
Syntax
invoice.getInvoicePaymentTerm([callback]) invoice.setInvoicePaymentTerm( invoicePaymentTerm, [callback])
Possible Values
0 (ptDueOnReceipt), 1 (ptDueOnDate), 2 (ptNet10), 3 (ptNet15), 4 (ptNet30), 5 (ptNet45)
Default Value
0
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for the getInvoicePaymentTerm([callback]) method is defined as:
function(err, data){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'data' is the value returned by the method.
The callback for the setInvoicePaymentTerm([callback]) method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Specifies the term by which the invoice payment is due.
The following funding types are available:
ptDueOnReceipt (0) | Payment is due when the payer receives the invoice. |
ptDueOnDate (1) | Payment is due on the date specified in the invoice. |
ptNet10 (2) | Payment is due 10 days from the invoice date. |
ptNet15 (3) | Payment is due 15 days from the invoice date. |
ptNet30 (4) | Payment is due 30 days from the invoice date. |
ptNet45 (5) | Payment is due 45 days from the invoice date. |
Data Type
Integer