/*差旅报销差旅明细二级分录, 增加核定税额字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REIMBURSEENTRY' AND KSQL_COL_NAME IN ('FAPPROVETAX'))
ALTER TABLE T_ER_REIMBURSEENTRY ADD (FAPPROVETAX DECIMAL(23,10) DEFAULT 0 NOT NULL );

/*对公报销费用明细分录, 增加核定税额字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMEXPDET' AND KSQL_COL_NAME IN ('FAPPROVETAX'))
ALTER TABLE T_ER_PUBREIMEXPDET ADD (FAPPROVETAX DECIMAL(23,10) DEFAULT 0 NOT NULL );

/*费用报销费用明细分录, 增加核定税额字段*/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL' AND KSQL_COL_NAME IN ('FAPPROVETAX'))
ALTER TABLE T_ER_EXPENSEDETAIL ADD (FAPPROVETAX DECIMAL(23,10) DEFAULT 0 NOT NULL );
