代码更新
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user