1 8 庫存報表

2021-10-23 10:23:04 字數 2010 閱讀 7446

訂貨報表

銷售報表

圖形報表:echarts外掛程式

以orderchartsqueryobject為例:

//分組查詢的條件

private string groupbytype="iu.name";

public static mapgroupbytypemap;

static

controller
select

$ groupbytype,

sum(item.number) totalnumber,

sum(item.amount) totalamount

from orderbillitem item

join orderbill bill

on item.bill_id = bill.id

join employee iu on bill.inputuser_id = iu.id

join product p on item.product_id = p.id

join supplier s on bill.supplier_id = s.id

group by $

where bill.status = 1

and bill.vdate >= #

and bill.vdate <= #

0">

and s.id=#

0">

and p.brand_id=#

出庫單審核生成銷售賬,為統計做準備
//生成銷售帳

listitems = old.getitems();

for (stockoutcomebillitem item : items)

子頁面:柱狀圖/餅狀圖jsp

$(".btn_bar").click(function () );

}) ;

後台controller提供圖形報表訪問資源位址,並處理提交資料

在qo的map中取出當前分組的型別value值

string groupbytype = salechartsqueryobject.groupbytypemap.get(queryobject.getgroupbytype());

model.addattribute("groupbytype", groupbytype);

按照分組型別,封裝所有查詢結果

list> charts = chartsservice.selectsalecharts(queryobject);
存放所有分組型別

listgroupbytypes = new arraylist<>();
柱狀圖存放銷售總額

listtotalamounts = new arraylist<>();

for (mapchart : charts)

model.addattribute("groupbytypes", json.tojsonstring(groupbytypes));

model.addattribute("totalamounts", json.tojsonstring(totalamounts));

餅狀圖存放銷售總額

list> datas = new arraylist<>();

//存放最大的銷售總額

bigdecimal max = bigdecimal.zero;

for (mapchart : charts)

}model.addattribute("datas", json.tojsonstring(datas));

model.addattribute("max", max);

庫存分析報表

sap系統提供標準的庫存分析報表用以分析呆滯庫存,主要有mc46,mc50。其中mc46為slow moving item。ecc5介面的中文翻譯是指標 慢移動項。囧 mc50為dead stock。也就是呆滯庫存。介面 mc46 mc46主要功能是檢視在一定時間內物料消耗的情況.這裡需要注意的是 ...

OU 庫存組織與子庫存

這三者應該是ebs中經常會造成混亂的吧,可以通過一句sql來理清其之間的關係 select hou.organization id ou org id,hou.name ou name,ood.organization id org org id,ood.organization code org ...

EBS OU 庫存組織與子庫存

可以通過以下的 sql區別三者的不同 selecthou.organization id ou org id,org id hou.nameou name,ou 名稱 ood.organization id org org id,庫存組織 id ood.organization code org o...