用友CDM貨位間商品移庫(一步)增長衝紅功能

1.新增業務單據提取方案,在業務單據貨位間商品移庫(一步),單據菜單功能。html

2.單據選擇sqlsql

select kaiprq,djbh,(select huowname from huoweizl b where a.dchw=b.hw) as dchwname,
(select huowname from huoweizl b where a.drhw=b.hw) as drhwname,bm,ywy
 from dbhz a order by  kaiprq DESC


單據擡頭sqlssh

select kaiprq,djbh,(select huowname from huoweizl b where a.dchw=b.hw) as dchwname,(select hw from huoweizl b where a.dchw=b.hw) as dchw,
(select huowname from huoweizl b where a.drhw=b.hw) as drhwname,(select hw from huoweizl b where a.drhw=b.hw) as drhw,bm,ywy
 from dbhz a
where a.djbh=:djbh
 
 
單據明細sql
select djbh,dj_sn,a.spid,recnum,dj_sort,xgdjbh,a.dw,pihao,a.jlgg,-shl as shl,-baozhshl as baozhshl,lingsshl,chbdj,dbdj,-dbje as dbje,ml,miejph,a.baozhiqi,drhw,dchw,sxrq,a.lshj,lshe,a.beizhu,b.* from dbmx a,spkfk b where a.spid=b.spid and a.djbh=:djbh
相關文章
相關標籤/搜索