/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_BADDEBTRESB_SB') CREATE INDEX IDX_AR_BADDEBTRESB_SB ON T_AR_BADDEBTRESERVEBILL ( FSOURCEBILLID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_BADDEBTRESB_INIT') CREATE INDEX IDX_AR_BADDEBTRESB_INIT ON T_AR_BADDEBTRESERVEBILL ( FINITBADDEBTID );


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