/**Begin D:\tool\PDM\PDM_UPGRADE_1.3\PDM_UPGRADE\PDM1\ER_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_ER_INVOICEDATAPRE_L', 'T_ER_INVOICEDATAPRE_L', 'FPKID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_INVOICEDATAPRE_L_FLOCID') CREATE  CLUSTERED INDEX IDX_ER_INVOICEDATAPRE_L_FLOCID ON T_ER_INVOICEDATAPRE_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_T_ER_INVOICEDATAPRE', 'T_ER_INVOICEDATAPRE', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_INVOICEDATAPRE_FNUMBER') CREATE  CLUSTERED INDEX IDX_ER_INVOICEDATAPRE_FNUMBER ON T_ER_INVOICEDATAPRE ( FNUMBER ,FMASTERID );



/**End D:\tool\PDM\PDM_UPGRADE_1.3\PDM_UPGRADE\PDM1\ER_constraint.sql **/
