INSERT INTO IF_OBJECT_LINK_FIELDS (OBJECT_NAME, LINK_NAME,SEQUENCE, CONSTANT_VAL, FROM_TABLE, FROM_FIELD, TO_FIELD, LINK_OPERATOR)
VALUES ('AIFA_ASSET_DETAIL','ASSET_DELETE_TRANBOOK',1,null,'AIFA_MASTER','COMPANYID','COMPANYID',1)
INSERT INTO IF_OBJECT_LINK_FIELDS (OBJECT_NAME, LINK_NAME,SEQUENCE, CONSTANT_VAL, FROM_TABLE, FROM_FIELD, TO_FIELD, LINK_OPERATOR)
VALUES ('AIFA_ASSET_DETAIL','ASSET_DELETE_TRANBOOK',2,null,'AIFA_MASTER','ASSET','ASSET',1)
INSERT INTO IF_OBJECT_LINK_FIELDS (OBJECT_NAME, LINK_NAME,SEQUENCE, CONSTANT_VAL, FROM_TABLE, FROM_FIELD, TO_FIELD, LINK_OPERATOR)
VALUES ('AIFA_ASSET_DETAIL','ASSET_DELETE_TRANBOOK',3,null,'AIFA_MASTER','SUB_ASSET','SUB_ASSET',1)
INSERT INTO IF_OBJECT_LINK_FIELDS (OBJECT_NAME, LINK_NAME,SEQUENCE, CONSTANT_VAL, FROM_TABLE, FROM_FIELD, TO_FIELD, LINK_OPERATOR)
VALUES ('AIFA_ASSET_DETAIL','ASSET_DELETE_TRANBOOK',4,null,'AIFA_MASTER','ADDN_COST','ADDN_COST',1)


UPDATE [IF_DISTRIBUTION_LOADED] SET DIST_VERSION = RTRIM(DIST_VERSION)+'a' WHERE ITEM_DESCRIPTION ='Morph Fixed Assets';