-- 商旅付款申请单
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FINVEXCHANGERATE')
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FINVEXCHANGERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FINVEXPQUOTETYPE')
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FINVEXPQUOTETYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_INVOICEINFOCP' AND KSQL_COL_NAME ='FCURRTOTALAMOUNT')
 ALTER TABLE T_ER_INVOICEINFOCP ADD (FCURRTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );