会员名称: 登录密码: (找回密码) 登录 会员注册

分类

知识
上个主题 下个主题
主题:试用了一下BOS2.0
avatar
HR_online
IT 行业
Ta擅长:
金蝶KIS(24),小企业管理(10) 本周回答(8),本月回答(12)
发贴时间:2007-8-15 15:43:48  
用BOS2.0,采用SQL方式生成一张已开票的出库统计表
set nocount on
create table #temp (fdate datetime NULL default '', fnumber varchar(80) NULL default '',
fname varchar(80) NULL default '',fqty decimal(13,2) NULL default '',fprice decimal(13,2) NULL default '',famount decimal(13,2) NULL default '')
insert into #temp select v3.fdate as fdate,v1.fnumber as fnumber,v1.fname as fname,sum(v2.fqty) as fqty ,avg(v2.fprice) as fprice,sum(v2.famount) as famount
from icstockbillentry v2 inner join t_icitem v1 on v1.fitemID=v2.fitemid
inner join icstockbill v3 on v2.finterid=v3.finterid
where v3.ftrantype='21' and v3.fhookstatus='2'
and {strDateFrom} and {strDateTo}
and {strNumberFrom} and {StrNumberTo}
group by v1.fnumber,v1.fname,v3.fdate
select * from #temp
drop table #temp
set nocount off

www.qxhui.com.cn
QQ群:14086362
有事点这里
View as RSS news feed in XML
© 2008 金蝶国际软件集团 版权所有  Version:3.2.2008.27643 页面时间:82.0711Ms