/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_constraint.sql **/
/* 发票分录新增发票序列号索引 */
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_INVOICE_SERIALNO') CREATE INDEX IDX_ER_INVOICE_SERIALNO ON T_ER_INVOICEINFO ( FSERIALNO );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_ER_INVOICE_PUB_SERIALNO') CREATE INDEX IDX_ER_INVOICE_PUB_SERIALNO ON T_ER_PUBREIMINVOICEINFO ( FSERIALNO );

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