代码更新

This commit is contained in:
2022-11-21 16:30:27 +08:00
parent ba3d7a4f99
commit 83f43e1018
3 changed files with 13 additions and 7 deletions

View File

@@ -1401,12 +1401,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
for (int j = 0; j < rows.size(); j++) {
JSONObject ivt = rows.getJSONObject(j);
double canuse_qty = ivt.getDoubleValue("plan_qty");
double canuse_qty = ivt.getDoubleValue("ivt_qty");
if (unassign_qty >= canuse_qty) {
unassign_qty = unassign_qty - canuse_qty;
ivt.put("change_qty", canuse_qty + "");
} else {
ivt.put("change_qty", unassign_qty + "");
ivt.put("change_qty", canuse_qty + "");
unassign_qty = 0;
}
//更新库存
@@ -1634,6 +1634,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
from_start.put("lock_type", "1");
from_start.put("storagevehicle_code", "");
storPublicService.updateStructAndPoint(from_start);
// 更新子卷包装关系表 状态 - 3
JSONObject jsonSub = subTab.query("container_name = '" + dis.getString("pcsn") + "' and status = '2'").uniqueResult(0);
if (ObjectUtil.isEmpty(jsonSub)) throw new BadRequestException("此子卷不存在或不为入库状态:"+dis.getString("pcsn"));
jsonSub.put("status", "3");
subTab.update(jsonSub);
}
/*