|
@@ -161,7 +161,9 @@ public class InventoryServiceImpl extends ServiceImpl<InventoryMapper, Inventory
|
|
|
if (bomSpec == null) {
|
|
|
throw new ServiceException("未知bom规格id:" + bomSpecId);
|
|
|
}
|
|
|
- throw new ServiceException("出库失败,品名为:" + bomSpec.getName() + "的bom库存不足");
|
|
|
+ throw new ServiceException("出库失败,品名为:" + bomSpec.getName() + "的bom库存不足,库存为:" +
|
|
|
+ (inventory == null ? BigDecimal.ZERO : inventory.getQuantity()) +
|
|
|
+ ",需要出库:" + quantity);
|
|
|
}
|
|
|
|
|
|
// 计算出库结存单价
|