优化手持出库
This commit is contained in:
@@ -179,7 +179,7 @@ public class HandReturnOutIvtServiceImpl implements HandReturnOutIvtService {
|
|||||||
|
|
||||||
int seq_no = 1;
|
int seq_no = 1;
|
||||||
//所有桶的总数
|
//所有桶的总数
|
||||||
BigDecimal sum_qty = new BigDecimal(0);
|
BigDecimal sum_qty = BigDecimal.valueOf(disObj.getDoubleValue("real_qty"));
|
||||||
for (int i = 0; i < dtl.size(); i++) {
|
for (int i = 0; i < dtl.size(); i++) {
|
||||||
JSONObject dtljo = dtl.getJSONObject(i);
|
JSONObject dtljo = dtl.getJSONObject(i);
|
||||||
String bucketunique = dtljo.getString("bucketunique");
|
String bucketunique = dtljo.getString("bucketunique");
|
||||||
@@ -289,6 +289,11 @@ public class HandReturnOutIvtServiceImpl implements HandReturnOutIvtService {
|
|||||||
}
|
}
|
||||||
// 10更新【出入库分配表】
|
// 10更新【出入库分配表】
|
||||||
disObj.put("real_qty", sum_qty);
|
disObj.put("real_qty", sum_qty);
|
||||||
|
|
||||||
|
BigDecimal qty_flag_dis = NumberUtil.sub(sum_qty, disObj.getDoubleValue("plan_qty"));
|
||||||
|
if(qty_flag_dis.doubleValue() > 0){
|
||||||
|
throw new PdaRequestException("总出库数大于计划出库数!");
|
||||||
|
}
|
||||||
dis_table.update(disObj);
|
dis_table.update(disObj);
|
||||||
//11 更新【出入库明细表】
|
//11 更新【出入库明细表】
|
||||||
WQLObject iosdlt_table = WQLObject.getWQLObject("ST_IVT_IOStorInvDtl");
|
WQLObject iosdlt_table = WQLObject.getWQLObject("ST_IVT_IOStorInvDtl");
|
||||||
|
|||||||
Reference in New Issue
Block a user