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/bopenitemadjustment.p)
<ANCESTOR-CODE>
/* ========================================================= */
/* necesarry to check the validatebcandadditionalupdates */
/* it must only be executed when instance is started here to */
/* ========================================================= */
assign vlBJEIsStartedFromOIAdj = false
vlBCInvoiceIsStartedFromOIAdj = false
vlBDInvoiceIsStartedFromOIAdj = false
vlBWHTIsStartedFromOIAdj = false.
/* ==================================================================================================================== */
/* Set initial value for a data-item that is used to fill the rowid of records in a temp-table that is passed to the UI */
/* ==================================================================================================================== */
assign viRowidOIAdj = -2147483648.
<M-86 run StartCacher
(output vhFcComponent (ohCacher),
output viFcReturnSuper (oiReturnStatus)) in BOpenItemAdjustment>
<M-37 run GetLogicalValueFromSession
(input viSessionID (iiSessionId),
input 'ARInvoiceExchangeRateDate':U (icDataItemName),
output vlCompanyPropertyIsARUseTaxDt (olValue),
output viFcReturnSuper (oiReturnStatus)) in Cacher>
<M-5 run GetLogicalValueFromSession
(input viSessionID (iiSessionId),
input 'APInvoiceExchangeRateDate':U (icDataItemName),
output vlCompanyPropertyIsAPUseInvDt (olValue),
output viFcReturnSuper (oiReturnStatus)) in Cacher>