/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SM_constraint.sql **/
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SM_DELIVERNOTICEENTRY_R' AND KSQL_INDNAME = 'IDX_SM_DELIENTRY_R_FPRODID') CREATE INDEX IDX_SM_DELIENTRY_R_FPRODID ON T_SM_DELIVERNOTICEENTRY_R ( FKITPRODUCTID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SM_SALORDERENTRY_R' AND KSQL_INDNAME = 'IDX_SM_SOE_R_KITPRODID') CREATE INDEX IDX_SM_SOE_R_KITPRODID ON T_SM_SALORDERENTRY_R ( FKITPRODUCTID );



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