提交 ce308af7 作者: zhangqiliang

调拨数量大于库存的时候,给报错提示信息

父级 b4f2559d
......@@ -7,6 +7,7 @@
*/
package com.boco.nbd.wios.manage.service.impl;
import com.boco.nbd.framework.workflow.entity.exception.FlowException;
import com.boco.nbd.wios.manage.entity.bo.*;
import com.boco.nbd.wios.manage.enums.WareHouseOrderEnum;
import com.boco.nbd.wios.manage.mapper.extdb.*;
......@@ -112,7 +113,8 @@ public class TransferSingleServiceImpl implements ISingleService {
WarehouseMaterials warehouseMaterials = warehouseMaterialsList.get(0);
// 判断调出仓库数量是否足够
if((warehouseMaterials.getRemainingNumber() == null ? BigDecimal.ZERO : warehouseMaterials.getRemainingNumber()).compareTo(warehouseMaterialsQuery.getNumber()) < 0){
throw new ServiceException("materials_11001",StringUtils.EMPTY);
//throw new ServiceException("materials_11001",StringUtils.EMPTY);
throw new ServiceException("仓库数量不够,无法调出!");
}
// 实列化单据与物料关系
SingleMaterialsEx singleMaterialsEx = new SingleMaterialsEx();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论