/** 发票分录新增发票采集顺序字段 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FBILLCREATETIME') 
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FBILLCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEPOOLINFO' AND KSQL_COL_NAME ='FBILLCREATETIME') 
 ALTER TABLE T_ER_INVOICEPOOLINFO ADD (FBILLCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FBILLCREATETIME') 
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FBILLCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FBILLCREATETIME') 
 ALTER TABLE T_ER_INVOICEINFO ADD (FBILLCREATETIME DATETIME );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
