/** 对公报销单 冲借款/冲预付分录添加往来类型、往来单位字段 **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFDET' AND KSQL_COL_NAME ='FENTRYWLTYPE') 
 ALTER TABLE T_ER_PUBREIMWRIOFFDET ADD (FENTRYWLTYPE VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFDET' AND KSQL_COL_NAME ='FENTRYWLUNIT') 
 ALTER TABLE T_ER_PUBREIMWRIOFFDET ADD (FENTRYWLUNIT BIGINT DEFAULT 0 NOT NULL );

