onPrintDropSheetFooter (event)
Description
Event called just before the drop footer text is printed to a printed drop sheet.

Parameters
footerText string
dropIDs array

Return value
newFooterText string

Example
function onPrintDropSheetFooter(footerText, dropIDs)

    -- display item IDs in drop in the output window
    local itemIDs = drops.getDropItemIDs(1234)
    for i, v in pairs(itemIDs) do
        print(v)
    end
    -- override footer
    return "TEST FOOTER TEXT";
end

Comments
Use this event to add dynamic drop sheet footers (e.g. different footers for collections and deliveries).
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 drop 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)