/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_CAS_RECEIVINGBILL_E', 'T_CAS_RECEIVINGBILL_E', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_RECE_E') CREATE INDEX IDX_CAS_RECE_E ON T_CAS_RECEIVINGBILL_E ( FREFUNDBATCHSEQID );


 EXEC P_ALTERPK 'PK_T_CAS_PAYMENTBILL_E', 'T_CAS_PAYMENTBILL_E', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PAYMENTBILL_E_APPORG') CREATE INDEX IDX_PAYMENTBILL_E_APPORG ON T_CAS_PAYMENTBILL_E ( FAPPLYORGID );



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