/**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_REIMBCLEARLOANENTRY' AND KSQL_COL_NAME ='FSRCBILLTYPE') 
 ALTER TABLE T_ER_REIMBCLEARLOANENTRY ADD (FSRCBILLTYPE VARCHAR(200) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_WRITEOFFDETAIL' AND KSQL_COL_NAME ='FSRCBILLTYPE') 
 ALTER TABLE T_ER_WRITEOFFDETAIL ADD (FSRCBILLTYPE VARCHAR(200) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFDET' AND KSQL_COL_NAME ='FSRCBILLTYPE') 
 ALTER TABLE T_ER_PUBREIMWRIOFFDET ADD (FSRCBILLTYPE VARCHAR(200) DEFAULT ' ' NOT NULL );

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