|
@@ -891,7 +891,7 @@ public class dispatch extends Controller {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ logger.info("进入前:");
|
|
|
for (Row row : rowsDispatchDetailGroupByItem) {
|
|
|
if (sumQtyRowsMap.containsKey(row.getString("itemno"))) {
|
|
|
RowsMap rowsMapByBatchno = sumQtyRowsMap.get(row.getString("itemno")).toRowsMap("batchno");
|
|
@@ -912,12 +912,14 @@ public class dispatch extends Controller {
|
|
|
response.put("sumQtyRows",sumQtyRows);
|
|
|
response.put("rowsDispatchDetailGroupByItem",rowsDispatchDetailGroupByItem);
|
|
|
response.put("errcode",0);
|
|
|
-
|
|
|
+ logger.info("进入后:");
|
|
|
if (row.getBigDecimal("qty").compareTo(row.getBigDecimal("delinvbalqty")) > 0) {
|
|
|
+ logger.info("response:"+response);
|
|
|
erpDocking.saveLog(this, "sa_dispatch", sa_dispatchid, "发货单复核", "", response, dispatchRows.get(0).getString("billno"));
|
|
|
return getErrReturnObject().setErrMsg("发货商品" + row.getString("itemno") + ",库存不足,无法操作复核!")
|
|
|
.toString();
|
|
|
}else{
|
|
|
+ logger.info("response:"+response);
|
|
|
erpDocking.saveLog(this, "sa_dispatch", sa_dispatchid, "发货单复核", "", response, dispatchRows.get(0).getString("billno"));
|
|
|
}
|
|
|
}
|