onPrintInvoiceFooter (event)
Description
Event called just before the invoice footer text is printed to a printed invoice.

Parameters
footerText string
itemIDs array

Return value
newFooterText string

Example
function onPrintInvoiceFooter(footerText, itemIDs)
    -- display item IDs in drop in the output window
    for i, v in pairs(itemIDs) do
        print(v)
    end

    -- override footer
    return "TEST FOOTER TEXT";
end

Comments
Use this event to add dynamic invoice footers.
footerText is the text specified in the Organisation Options or blank (if not specified in Server Options).
Change the value of footerText and return it to change the invoice footer.
This event is always called even if no footer is specified in the Server Options so footers can be added by using script.

See also

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