初始化出库任务

--初始化出库单汇总,去除出库任务单,清空波次号
update out_sale_billing_m set sf_ycw_sl='否' where DJBH ='XHBB00000414140';
BEGIN
FOR C IN (SELECT * FROM OUT_SALE_BILLING_M WHERE DJBH ='XHBB00000414140') LOOP
UPDATE out_sale_billing_m T
SET zyzt ='0',T.SF_YCW_SL ='否',t.sf_gq='否'--,SF_YBDD='否'
WHERE djbh = c.djbh
AND yzid = c.yzid;

成都网站设计、成都网站制作服务团队是一支充满着热情的团队,执着、敏锐、追求更好,是创新互联的标准与要求,同时竭诚为客户提供服务是我们的理念。成都创新互联公司把每个网站当做一个产品来开发,精雕细琢,追求一名工匠心中的细致,我们更用心!

UPDATE out_sale_billing_D T
   SET zyzt ='0',T.SL_LHWCL =T.SL,T.SL_ZJWCL =0, T.SL_KCBZ = 0,t.sf_gq='否',T.SF_YCW_SL ='否'
 WHERE djbh = c.djbh
   AND yzid = c.yzid;    

DELETE FROM OUT_SALE_TASK_D WHERE DJBH= C.DJBH AND YZID = C.YZID;
DELETE FROM OUT_SALE_TASK_M WHERE DJBH= C.DJBH AND YZID = C.YZID;

END LOOP;
END;

UPDATE out_sale_billing_m set BCH='' WHERE DJBH ='XHBB00000414140';


名称栏目:初始化出库任务
网站URL:http://ybzwz.com/article/gjpipo.html