project QadFinancials > class BMfgExchangeRate > method UpdateMfgData

Description

Controls the processing of any update logic that is required when performing a create/modfiy operation on an MFG/PRO business component.
KEEP THE ANCESTOR TAG IN THE DESCENDANTS TO AVOID SCOPING PROBLEMS ON THE RECORD-AVAILABILITY
This method is the place holder for nay update ligic and complex mapping from the financials table to MFG/PRO.


Parameters


icMfgTableNameinputcharacterName of the MFG/PRO table name that is currently being processed. This is used to determine which logic to execute within the method in the cases where one business component maps to multiple tables in MFG/PRO.
icFinancialTableNameinputcharacterName of the Financial table name that is currently being processed. This is used to determine which logic to execute within the method in the cases where one business component has multiple tables that map to MFG/PRO.
ihFinancialDataBufferinputhandle
ihMfgDataBufferinputhandle
icMfgDomaininputcharacter
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


unused


program code (program/bmfgexchangerate.p)

<ANCESTOR-CODE> 
vcERType = <M-1 GetMfgExchangeRateType
              (input  tCopyExchangeRate.tcExchangeRateTypeCode (icExchangeRateType)) in BMfgExchangeRate>.

assign texr_rate.exr_end_date       =  if(tCopyExchangeRate.ExchangeRateValidDateTill > 01/01/3999) 
                                       then 12/31/3999 
                                       else tCopyExchangeRate.ExchangeRateValidDateTill
        texr_rate.exr_rate          = 1 / tCopyExchangeRate.ExchangeRateScale
        texr_rate.exr_rate2         = tCopyExchangeRate.ExchangeRate
        texr_rate.exr_mod_userid    = vcUserLogin
        texr_rate.exr_mod_date      = today
        texr_rate.exr_ratetype      = vcERType.