您好,登錄后才能下訂單哦!
--初始化出庫單匯總,去除出庫任務單,清空波次號
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';
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。