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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_IC_FLOGINNAME') CREATE INDEX IDX_AR_IC_FLOGINNAME ON T_AR_INVOICECFG ( FLOGINNAME );


 EXEC P_ALTERPK 'PK_T_AR_INVOICECFGENTRY', 'T_AR_INVOICECFGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_ICE_CONFIGID') CREATE INDEX IDX_AR_ICE_CONFIGID ON T_AR_INVOICECFGENTRY ( FCONFIGID );



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