invoices.invoiceNumberToInvoiceID
Description
Get a invoice ID from a invoice number.

Parameters
invoiceNumber number

Return value
invoiceID number (< 1 if not found)

Example
local invoiceID = invoices.invoiceNumberToInvoiceID(2000)
if(invoiceID < 1) then
    print("Invoice not found")
else
    print("Invoice ID: " .. invoiceID)
end

Comments

See also
invoiceIDToInvoiceNumber

Back
Generated on the 26 June 2024 at 22:01:29 (UK Time)