-- 委外完工入庫單上添加来源系统单据编号
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_im_mdc_omcpbillentry_r' AND KSQL_COL_NAME ='fsaleoutstockbillno')
ALTER TABLE t_im_mdc_omcpbillentry_r ADD (fsaleoutstockbillno varchar(50) NOT NULL DEFAULT ' ' );
