/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_AR_REVCFMBILL', 'T_AR_REVCFMBILL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_REVCFMBILL_ORG') CREATE INDEX IDX_AR_REVCFMBILL_ORG ON T_AR_REVCFMBILL ( FORGID );


 EXEC P_ALTERPK 'PK_T_AR_REVCFMBILLENTRY', 'T_AR_REVCFMBILLENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_REVCFMBILLENTRY_FID') CREATE INDEX IDX_AR_REVCFMBILLENTRY_FID ON T_AR_REVCFMBILLENTRY ( FID );



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
