IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSE_DETAIL_DATA' AND KSQL_COL_NAME ='FPRICE')
 ALTER TABLE T_ER_EXPENSE_DETAIL_DATA ADD (FPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL);

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSE_DETAIL_DATA' AND KSQL_COL_NAME ='FCURPRICE')
 ALTER TABLE T_ER_EXPENSE_DETAIL_DATA ADD (FCURPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL);

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSE_DETAIL_DATA' AND KSQL_COL_NAME ='FDEDUCTIBLETAX')
 ALTER TABLE T_ER_EXPENSE_DETAIL_DATA ADD (FDEDUCTIBLETAX DECIMAL(23,10) DEFAULT 0 NOT NULL);

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPENSE_DETAIL_DATA' AND KSQL_COL_NAME ='FDEDUCTIBLETAX')
 ALTER TABLE T_ER_EXPENSE_DETAIL_DATA ADD (FDEDUCTIBLETAX DECIMAL(23,10) DEFAULT 0 NOT NULL);


 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPDATA_SYNCRECORD' AND KSQL_COL_NAME ='FSTATUS')
 ALTER TABLE T_ER_EXPDATA_SYNCRECORD ADD (FSTATUS VARCHAR(5) DEFAULT ' ' NOT NULL);


 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_EXPDATA_SYNCRECORD' AND KSQL_COL_NAME ='FENABLE')
 ALTER TABLE T_ER_EXPDATA_SYNCRECORD ADD (FENABLE CHAR(1) DEFAULT '1' NOT NULL);
