Description
This method can be extended with code to execute when an instance of a business class is started.
PreCondition
This method is executed when a new instance of the business class is started, or when a draft instance is opened (in that case a new instance is started which is a copy of the draft instance).
Parameters
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
unused
program code (program/bddocument.p)
<ANCESTOR-CODE>
/* ============================================================================================== */
/* About the vlSkipDueDateValidation data item: */
/* Normally, the due date of a document must be at least today. It cannot be in the past. */
/* However, when using the ApiStdMaintainTT method (the people from conversion will use it), */
/* it should be possible to have the due date in the past. We will use this variable to check it. */
/* */
/* * In InitInstance, it will be set to false. */
/* * In ApiStdMaintainTT, it will be set to true. */
/* ============================================================================================== */
assign
vlBDCollectionDDocWasStartedHer = false
vlBDInvoiceDDocWasStartedHere = false
vlBDPayDDocWasStartedHere = false
vlBJournalEntryDDocWasStartedHe = false
vlSkipAdditionalUpdatesDDoc = false
vlSkipDueDateValidationDDoc = false
vlBDPaySelectionWasStartedHere = false.