End Document

End Document has this format:

FxxxxxEndDocument

The End Document component performs these tasks:

  • Assigns a next number to the document.

    For vouchers, you should do this before calling journal entry edit object, but not before the voucher has been balanced and is ready to be added to the database. By placing this module on the before add/delete/update events, the document passes all edits before running this event.

  • Reads cache records.

  • On an ADD, writes new rows to the table.

  • On a CHG, retrieves and updates existing rows.

  • On a DEL, deletes rows from the table.

  • Adds information and updates associated tables.

    For example, it adds and updates these objects:

    • Manual checks associated with vouchers.

    • Address Book vouchered YTD columns in Address Book.

    • Address, phones, and who's who information for Address Book.

    • Batch header.

  • Clears the cache for that document and any work fields after all updates are completed successfully.

  • Summarizes documents, if designated in a processing option, as it writes to the database.

  • Reads work file through an alternate means and writes the records at a control break.

  • Performs currency conversion.