/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_DAILYREIMPAYENTRY' AND KSQL_COL_NAME ='FTARGETSETTLETYPE') 
 ALTER TABLE T_ER_DAILYREIMPAYENTRY ADD (FTARGETSETTLETYPE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_LOANBILLPAYENTRY' AND KSQL_COL_NAME ='FTARGETSETTLETYPE') 
 ALTER TABLE T_ER_LOANBILLPAYENTRY ADD (FTARGETSETTLETYPE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBLICREIMPAYENTRY' AND KSQL_COL_NAME ='FTARGETSETTLETYPE') 
 ALTER TABLE T_ER_PUBLICREIMPAYENTRY ADD (FTARGETSETTLETYPE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRIPREIMPAYENTRY' AND KSQL_COL_NAME ='FTARGETSETTLETYPE') 
 ALTER TABLE T_ER_TRIPREIMPAYENTRY ADD (FTARGETSETTLETYPE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_TRIPREQPAYENTRY' AND KSQL_COL_NAME ='FTARGETSETTLETYPE') 
 ALTER TABLE T_ER_TRIPREQPAYENTRY ADD (FTARGETSETTLETYPE BIGINT DEFAULT 0 NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\ER_table.sql **/
