|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622 。
您需要 登录 才可以下载或查看,没有帐号?注册
x
现在越来越多的单位 不是按照开票来统计销售,而是按照销售发出 甚至是回款数来统计业务员销售考核!本文中的代码是解决U8 T6 软件中 统计按照客户销售出库单数量来进行销售统计的自定义报表代码 通过销售自定义表功能实现!
Select a.ddate as 发货单日期,c.ddate as 销售出库单日期,c.dVeriDate as 出库单审核日期,a.ccuscode as 客户编码,f.ccusname as 客户名称, b.cinvcode as 商品编码 ,e.cinvname as 商品名称,b.iquantity as 出库数,b.iTaxUnitPrice as 单价,b.iSum as 金额 From dispatchlist a Left join dispatchlists b on a.dlid=b.dlid Left join rdrecord c on a.dlid=c.cDLCode Left join rdrecords d on c.id=d.id and b. AutoID= d.idlsid and b.cinvcode=d.cinvcode Left join customer f on a.ccuscode=f.ccuscode Left join inventory e on b.cinvcode=e.cinvcode where c.cvouchtype='32' and c.chandler is not null
将代码复制到自定义报表的SQL代码里,然后运行 里即可查询到 按照销售单出库统计数 ,同时单价取自该出库单对应的发货单单价!所以金额也会符合应用要求
|
|