/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AR_BUSBILLENTRY' AND KSQL_INDNAME = 'IDX_AR_BUSE_COREBILLID') CREATE INDEX IDX_AR_BUSE_COREBILLID ON T_AR_BUSBILLENTRY ( FCOREBILLID ,FCOREBILLENTRYID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AR_FINARBILLENTRY' AND KSQL_INDNAME = 'IDX_AR_FINE_COREBILLID') CREATE INDEX IDX_AR_FINE_COREBILLID ON T_AR_FINARBILLENTRY ( FCOREBILLID ,FCOREBILLENTRYID );


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