/* 商旅付款申请单-发票分录新增税号一致/抬头一致/个人发票 */
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FPASSVERIFYBUYERNAME') 
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FPASSVERIFYBUYERNAME VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FPASSVERIFYBUYERTAXNO') 
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FPASSVERIFYBUYERTAXNO VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FPERSONALINVOICE') 
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FPERSONALINVOICE VARCHAR(30) DEFAULT ' ' NOT NULL );
 
 /* 费用池-发票分录新增税号一致/抬头一致/个人发票 */
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEPOOLINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERNAME') 
 ALTER TABLE T_ER_INVOICEPOOLINFO ADD (FPASSVERIFYBUYERNAME VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEPOOLINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERTAXNO') 
 ALTER TABLE T_ER_INVOICEPOOLINFO ADD (FPASSVERIFYBUYERTAXNO VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEPOOLINFO' AND KSQL_COL_NAME ='FPERSONALINVOICE') 
 ALTER TABLE T_ER_INVOICEPOOLINFO ADD (FPERSONALINVOICE VARCHAR(30) DEFAULT ' ' NOT NULL );
 
 /* 对公报销单-发票分录新增税号一致/抬头一致/个人发票 */
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERNAME') 
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FPASSVERIFYBUYERNAME VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERTAXNO') 
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FPASSVERIFYBUYERTAXNO VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMINVOICEINFO' AND KSQL_COL_NAME ='FPERSONALINVOICE') 
 ALTER TABLE T_ER_PUBREIMINVOICEINFO ADD (FPERSONALINVOICE VARCHAR(30) DEFAULT ' ' NOT NULL );
 
 /* 费用/差旅报销单-发票分录新增税号一致/抬头一致/个人发票 */
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERNAME') 
 ALTER TABLE T_ER_INVOICEINFO ADD (FPASSVERIFYBUYERNAME VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FPASSVERIFYBUYERTAXNO') 
 ALTER TABLE T_ER_INVOICEINFO ADD (FPASSVERIFYBUYERTAXNO VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FPERSONALINVOICE') 
 ALTER TABLE T_ER_INVOICEINFO ADD (FPERSONALINVOICE VARCHAR(30) DEFAULT ' ' NOT NULL );