IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FPLANETOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FPLANETOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FRPLANETOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FRPLANETOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FHOTELTOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FHOTELTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FTRAINTOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FTRAINTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FRTRAINTOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FRTRAINTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FVEHICLETOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FVEHICLETOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FSERVICETOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FSERVICETOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAY' AND KSQL_COL_NAME IN ('FMEALTOTALAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAY ADD (FMEALTOTALAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FTICKETPRICE'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FTICKETPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FAIRPORTPRICE'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FAIRPORTPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FFUELPRICE'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FFUELPRICE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FENDORSEMENTAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FENDORSEMENTAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FREFUNDAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FREFUNDAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FOTHERAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FOTHERAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_CHECKINGPAYENTRY' AND KSQL_COL_NAME IN ('FASSURANCEAMOUNT'))
ALTER TABLE T_ER_CHECKINGPAYENTRY ADD (FASSURANCEAMOUNT DECIMAL(23,10) DEFAULT 0 NOT NULL );