代码更新
This commit is contained in:
@@ -1378,6 +1378,11 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
} else {
|
||||
jo_dtl.put("bill_status", "30");
|
||||
}
|
||||
|
||||
if (jo_dtl.getDoubleValue("unassign_qty") == 0) {
|
||||
jo_dtl.put("bill_status", "40");
|
||||
}
|
||||
|
||||
wo_dtl.update(jo_dtl);
|
||||
//更新主表状态
|
||||
this.updateMststatus(iostorinv_id);
|
||||
@@ -1878,7 +1883,8 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
assign_qty = NumberUtil.add(assign_qty,canuse_qty);
|
||||
|
||||
if (unassign_qty >= canuse_qty) {
|
||||
unassign_qty = unassign_qty - canuse_qty;
|
||||
// unassign_qty = unassign_qty - canuse_qty;
|
||||
unassign_qty = NumberUtil.sub(unassign_qty,canuse_qty);
|
||||
ivt.put("change_qty", canuse_qty + "");
|
||||
} else {
|
||||
ivt.put("change_qty", canuse_qty + "");
|
||||
@@ -1920,11 +1926,12 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
break;
|
||||
}
|
||||
}
|
||||
HashMap<String, String> map_dtl = new HashMap<String, String>();
|
||||
// HashMap<String, String> map_dtl = new HashMap<String, String>();
|
||||
JSONObject map_dtl = new JSONObject();
|
||||
//更新明细
|
||||
map_dtl.put("unassign_qty", unassign_qty + "");
|
||||
map_dtl.put("assign_qty", assign_qty + "");
|
||||
if (unassign_qty == 0) {
|
||||
if (map_dtl.getDoubleValue("unassign_qty") <= 0) {
|
||||
map_dtl.put("bill_status", "40");
|
||||
} else {
|
||||
map_dtl.put("bill_status", "30");
|
||||
|
||||
Reference in New Issue
Block a user