二次开发项目
图(一)
点击采购申请单时序薄
图(二)
输入订单号码—点击确定
- 6 – 4/16/2013
二次开发项目
图(三)
点击文件—引出内部数据
图(四)
? 库存查询状态表
查询条件
物料来源 销售订单 生产任务单 - 7 – 4/16/2013
二次开发项目
物物料代码 料代码 销售订单 生产任务单
物料名称 规格型号 默认仓库 销售订单号 购货单位 销售数量 单出库量 生产任务单号 工令号 生产车间 计划数量 计划生产日期 计划完工日期 位 数 select b.fnumber 物料代码, b.fname 物料名称, b.fmodel 规格型号, b.fsecinv 安全库存, c.fname 仓库名称, a.fbillno 生产任务单号,
substring(b.fname ,1,5) 工令号, a.fplancommitdate 计划开工时间, a.fqty 计划数量,
a.fplanfinishdate 计划完工时间, d.fbillno 销售订单号, h.fname 购货单位, f.fqty 订货数量, --m.fname 单位,
f.fqtymust 假设出库数量 from icmo a
right join t_icitem b on a.fitemid=b.fitemid left join t_stock c
on b.FDefaultLoc=c.fitemid
--right join t_unitgroup m --为什么是空值呢? -- on a.funitid=m.funitgroupid right join seorder d
on d.finterid=a.forderinterid right join t_organization h on d.fcustid=h.fitemid right join icstockbillentry f on b.fitemid=f.fitemid where b.fnumber like '%3.%'
select a.fnumber 物料代码,
a.fname 物料名称,
- 8 – 4/16/2013
二次开发项目
a.fmodel 规格型号, a.fsecinv 安全库存 from icmo b
right join t_icitem a
on a.fitemid=b.fitemid --找到物料代码,名称,规格,安全库存。
select a.fname 单位,*from t_unitgroup a
left join icmo b
on a.funitgroupid=b.funitid --得出单位。
on d.fcustid=f.fitemid --订单号码,和购货单位
select fcommitqty 出库数量,fqty 订货数量,finterid, * from
seorderentry
order by fitemid
select a.fitemid,a.fqty 数量,a.fqtymust 出货数量,* from icstockbillentry a
right join t_icitem b
on b.fitemid=a.fitemid--出货数量
select B.fbillno 销售订单号,* from icmo a
right join seorder b
on b.finterid=a.forderinterid --得出销售订单号
select *from seorder ?
盘点报表
select t1.fnumber 物料代码,t1.fname 物料名称,
t1.fmodel 规格型号 ,t3.fname 仓库名称,t2.fqty 结存数量 , t4.fname 单位,t2.fbatchno 备注 from icinventory t2 right join t_icitem t1 on t1.fitemid=t2.fitemid right join t_stock t3 on t3.fitemid=t2.fstockid right join t_measureunit t4
on t1.funitgroupid=t4.funitgroupid
where t1.fnumber between '*ItemNo*' AND '#ItemNo#' AND t2.fqty<>'0'
目的:每月盘点时候,能迅速通过物料找到库存不为‘0’的所有物料,直接打印或者导出。 实现:通过数据查询分析器,进行SQL语句编写 效果图:
第一:点击仓库管理-数据查询分析-查询分析工具
- 9 – 4/16/2013
二次开发项目
第二:选择打开,输入需要查找的物料代码
第三:点击确定。需要查找的物料可自动生成,
- 10 – 4/16/2013