-- 暂估应付单明细增加FWBS字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_BUSBILLENTRY' AND KSQL_COL_NAME ='FWBS') 
ALTER TABLE T_AP_BUSBILLENTRY ADD (FWBS BIGINT DEFAULT 0 NOT NULL );

-- 财务应付单明细增加FWBS字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AP_FINAPBILLDETAILENTRY' AND KSQL_COL_NAME ='FWBS') 
ALTER TABLE T_AP_FINAPBILLDETAILENTRY ADD (FWBS BIGINT DEFAULT 0 NOT NULL );
