Product: | TOTVS Backoffice |
Product Line: | Protheus Line |
Industry: | Services |
Module: | TOTVS Backoffice (Protheus Line) - Fixed Assets (SIGAATF) |
Function: | ATFA012 |
Country: | Brazil |
Ticket: | Internal |
Requisite/Story/Issue | DSERCTR1-46748 |
Use the entry point A012FNG in routine ATFA012 (Assets Register) to allow the custom field trigger of table FNG every time you enter an asset group. It is activated for each line of table SN3, created from the asset group, allowing the updating or adjustment of specific fields as needed.
With A012FNG, the client can define custom logic for the fields of table FNG, ensuring the records created in the asset register are complete and compliant with the company's business rules, making sure that all details are duly taken into account during the registration process.
ExecBlock("A012FNG",.F.,.F.,{oAux:aHeader, oAux:aCols, oAux})
User Function A012FNG() Local oModel := FWModelActive() Local oAux := oModel:GetModel( 'SN3DETAIL' ) //------------------------------------------------------------------------------------------------ // EXAMPLE USING CUSTOM FIELDS: 'N3_VMXDEPR', // 'FNG_YPMXDP', 'N3_PERDEPR' ,FNG_YPERDP. //----------------------------------------------------------------------------------------------- oAux:LoadValue('N3_VMXDEPR' ,FNG->FNG_YPMXDP) oAux:LoadValue('N3_PERDEPR' ,FNG->FNG_YPERDP) Return
Important !!