/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURINBILLENTRY_F' AND KSQL_COL_NAME ='FDEDUCTIBLERATE') 
 ALTER TABLE T_IM_PURINBILLENTRY_F ADD (FDEDUCTIBLERATE DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURINBILLENTRY_F' AND KSQL_COL_NAME ='FCURDEDUCTIBLEAMT') 
 ALTER TABLE T_IM_PURINBILLENTRY_F ADD (FCURDEDUCTIBLEAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURINBILLENTRY_F' AND KSQL_COL_NAME ='FINTERCOSTAMT') 
 ALTER TABLE T_IM_PURINBILLENTRY_F ADD (FINTERCOSTAMT DECIMAL(23,10) DEFAULT 0 NOT NULL );

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