/**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_BUSBILL' AND KSQL_INDNAME = 'IDX_AR_BUSBILL_BOOKDATEORG') CREATE INDEX IDX_AR_BUSBILL_BOOKDATEORG ON T_AR_BUSBILL ( FBOOKDATE ,FORGID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_AR_FINARBILL' AND KSQL_INDNAME = 'IDX_AR_FINBILL_BOOKDATEORG') CREATE INDEX IDX_AR_FINBILL_BOOKDATEORG ON T_AR_FINARBILL ( FBOOKDATE ,FORGID );


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