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

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

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



