合同在途

This commit is contained in:
2023-01-31 10:36:30 +08:00
parent 3c0558068f
commit 770e57686b
2 changed files with 9 additions and 8 deletions

View File

@@ -160,6 +160,7 @@
PURCHASE.ITEM_ID in 输入.mater_ids
ENDOPTION
GROUP BY PURCHASE.ITEM_ID,PURCHASE.VBILLCODE, PURCHASE.ITEM_CODE, PURCHASE.ITEM_NAME
ORDER BY PURCHASE.ITEM_CODE, PURCHASE.VBILLCODE
ENDSELECT
ENDQUERY
ENDIF

View File

@@ -337,20 +337,20 @@ public class StatisticalReportServiceImpl implements StatisticalReportService {
JSONObject map = new JSONObject();
map.put("flag", "4");
map.put("ext_id", jsonMater.getString("ext_id"));
//JSONObject num_jo = null;
// JSONObject num_jo = null;
// JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0);
JSONObject num_jo = WQL.getWO("QL_ERP").addParamMap(map).setDbname("dataSource1").process().uniqueResult(0);
//合同在途
double notqty = 0;
// if (ObjectUtil.isNotEmpty(num_jo)) {
// notqty = num_jo.getDoubleValue("notqty");
// if (notqty < 0) {
// notqty = 0;
// }
// }
if (ObjectUtil.isNotEmpty(num_jo)) {
notqty = num_jo.getDoubleValue("notqty");
if (notqty < 0) {
notqty = 0;
}
}
jo6.put(material_id, String.format("%.2f", notqty));
//5、库/需差额量 :库存现存量-排产需求量