合同在途
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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、库/需差额量 :库存现存量-排产需求量
|
||||
|
||||
Reference in New Issue
Block a user