/** 对公报销单增加发票内容字段**/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMEXPDET' AND KSQL_COL_NAME ='FITEMFROM')
 ALTER TABLE T_ER_PUBREIMEXPDET ADD (FITEMFROM CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMEXPDET' AND KSQL_COL_NAME ='FINVOICETYPEITEM')
 ALTER TABLE T_ER_PUBREIMEXPDET ADD (FINVOICETYPEITEM CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FINVOICEFROM')
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FINVOICEFROM CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEITEM' AND KSQL_COL_NAME ='FINVOICEITEMOFFSET')
 ALTER TABLE T_ER_PUBREIMINVOICEITEM ADD (FINVOICEITEMOFFSET CHAR(1) DEFAULT '0' NOT NULL );
