-- 差旅
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REIMBURSEENTRY_A' AND KSQL_COL_NAME IN ('FINVOICEFROMPARENT'))
ALTER TABLE T_ER_REIMBURSEENTRY_A ADD (FINVOICEFROMPARENT CHAR(1) DEFAULT ' ' NOT NULL );

-- 对公
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMEXPDET' AND KSQL_COL_NAME IN ('FINVOICEFROMPARENT'))
ALTER TABLE T_ER_PUBREIMEXPDET ADD (FINVOICEFROMPARENT CHAR(1) DEFAULT ' ' NOT NULL );

-- 费用
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL' AND KSQL_COL_NAME IN ('FINVOICEFROMPARENT'))
ALTER TABLE T_ER_EXPENSEDETAIL ADD (FINVOICEFROMPARENT CHAR(1) DEFAULT ' ' NOT NULL );