取消单据,提示修改

dev_no_inv
yewj 10 months ago
parent 22933258ce
commit b42b4d272a

@ -327,6 +327,9 @@ public class IoCollectOrderController extends BaseController {
collectOrderBiz.setScanActCount(0);
collectOrderBiz.setTempSplitCount(0);
collectOrderBiz.setTempWorkPlaceCount(0);
if (collectOrderBiz.getCount() == 0) {
collectOrderBizService.removeById(collectOrderBiz.getId());
}
}
collectOrderBizService.updateBatchById(collectOrderBizs);
}

@ -216,7 +216,7 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode
case 3: //提醒是否插入
if (!IntUtil.value(addTagCodeReqeust.getInsert())) {
if (collectOrderBiz == null)
throw new JsonException(502, "非此单据追溯码,是否继续添加!");
throw new JsonException(502, addTagCodeReqeust.getCode() + "非此单据追溯码,是否继续添加!");
int count1 = IntUtil.value(collectOrderBiz.getScanCount()) + 1;
int actCount1 = 0;
if (IntUtil.value(collectOrder.getOrderCirType()) == 1) {
@ -231,7 +231,7 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode
throw new JsonException(502, collectOrderBiz.getCpmctymc() + "拆零数量还有剩余,是否继续扫码?");
}
}
throw new JsonException(502, "扫码数量超出,是否继续添加!");
throw new JsonException(502, collectOrderBiz.getCpmctymc() +"扫码数量超出,是否继续添加!");
}
collectOrderBiz.setScanCount(count1);
collectOrderBiz.setScanActCount(actCount1);
@ -301,7 +301,7 @@ public class IoCollectOrderCodeManService extends ServiceImpl<IoCollectOrderCode
if (!IntUtil.value(addTagCodeReqeust.getInsert())) {
if (collectOrderBiz == null)
throw new JsonException(502, "非此单据追溯码,是否继续添加?");
throw new JsonException(502, addTagCodeReqeust.getCode() + "非此单据追溯码,是否继续添加?");
int count1 = IntUtil.value(collectOrderBiz.getScanCount()) + 1;
int actCount1 = 0;
if (IntUtil.value(collectOrder.getOrderCirType()) == 1) {

Loading…
Cancel
Save