/**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_FIN_CREATETIME') CREATE INDEX IDX_AR_FIN_CREATETIME ON T_AR_FINARBILL ( FCREATETIME ,FISVOUCHER );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_FIN_BIZDATE') CREATE INDEX IDX_AR_FIN_BIZDATE ON T_AR_FINARBILL ( FBIZDATE );
 EXEC p_DropIdx 'IDX_AR_FIN_ORG', 'T_AR_FINARBILL';

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