/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\AR_constraint.sql **/
EXEC p_DropIdx 'IDX_AR_REVCFMBILL_ORG', 'T_AR_REVCFMBILL';
 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 ,FBIZDATE );

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_BUSBILL_BIZDATE') CREATE INDEX IDX_AR_BUSBILL_BIZDATE ON T_AR_BUSBILL ( FBIZDATE );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_AR_INVOICE_BIZDATE') CREATE INDEX IDX_AR_INVOICE_BIZDATE ON T_AR_INVOICE ( FBIZDATE );


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