src-db/database/model/triggers/A_ASSET_GROUP_TRG.xml
changeset 1605 8a0fe0193bef
parent 799 fef2c5e2feb7
child 1929 ad0353d93b0f
equal deleted inserted replaced
1604:a1c518e6ed93 1605:8a0fe0193bef
    35     )
    35     )
    36   LOOP
    36   LOOP
    37     INSERT
    37     INSERT
    38     INTO A_Asset_Group_Acct
    38     INTO A_Asset_Group_Acct
    39       (
    39       (
    40         A_ASSET_GROUP_ID, C_ACCTSCHEMA_ID, AD_CLIENT_ID,
    40         A_Asset_Group_Acct_ID, A_ASSET_GROUP_ID, C_ACCTSCHEMA_ID, AD_CLIENT_ID,
    41         AD_ORG_ID, ISACTIVE, CREATED,
    41         AD_ORG_ID, ISACTIVE, CREATED,
    42         CREATEDBY, UPDATED, UPDATEDBY,
    42         CREATEDBY, UPDATED, UPDATEDBY,
    43         A_DEPRECIATION_ACCT, A_ACCUMDEPRECIATION_ACCT, A_DISPOSAL_LOSS,
    43         A_DEPRECIATION_ACCT, A_ACCUMDEPRECIATION_ACCT, A_DISPOSAL_LOSS,
    44         A_DISPOSAL_GAIN
    44         A_DISPOSAL_GAIN
    45       )
    45       )
    46       VALUES
    46       VALUES
    47       (
    47       (
    48         :new.A_Asset_Group_ID, Cur_Defaults.C_AcctSchema_ID, :new.AD_Client_ID,
    48         get_uuid(), :new.A_Asset_Group_ID, Cur_Defaults.C_AcctSchema_ID, :new.AD_Client_ID,
    49         :new.AD_Org_ID,  'Y', now(),
    49         :new.AD_Org_ID,  'Y', now(),
    50         :new.CreatedBy, now(), :new.UpdatedBy,
    50         :new.CreatedBy, now(), :new.UpdatedBy,
    51         Cur_Defaults.A_DEPRECIATION_ACCT, Cur_Defaults.A_ACCUMDEPRECIATION_ACCT, Cur_Defaults.A_DISPOSAL_LOSS,
    51         Cur_Defaults.A_DEPRECIATION_ACCT, Cur_Defaults.A_ACCUMDEPRECIATION_ACCT, Cur_Defaults.A_DISPOSAL_LOSS,
    52         Cur_Defaults.A_DISPOSAL_GAIN
    52         Cur_Defaults.A_DISPOSAL_GAIN
    53       )
    53       )