-- 费用报销单
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSEDETAIL_A' AND KSQL_COL_NAME ='FISOVERCHECK')
 ALTER TABLE T_ER_EXPENSEDETAIL_A ADD (FISOVERCHECK CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FINVEXCHANGERATE')
 ALTER TABLE T_ER_INVOICEINFO ADD (FINVEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FINVEXPQUOTETYPE')
 ALTER TABLE T_ER_INVOICEINFO ADD (FINVEXPQUOTETYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFO' AND KSQL_COL_NAME ='FCURRTOTALAMOUNT')
 ALTER TABLE T_ER_INVOICEINFO ADD (FCURRTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
-- 国内/国际差旅
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_NREIMBURSEENTRY' AND KSQL_COL_NAME ='FISOVERCHECK')
 ALTER TABLE T_ER_NREIMBURSEENTRY ADD (FISOVERCHECK CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_NINVOICEINFO' AND KSQL_COL_NAME ='FINVEXCHANGERATE')
 ALTER TABLE T_ER_NINVOICEINFO ADD (FINVEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_NINVOICEINFO' AND KSQL_COL_NAME ='FINVEXPQUOTETYPE')
 ALTER TABLE T_ER_NINVOICEINFO ADD (FINVEXPQUOTETYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_NINVOICEINFO' AND KSQL_COL_NAME ='FCURRTOTALAMOUNT')
 ALTER TABLE  T_ER_NINVOICEINFO ADD (FCURRTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );