|
@@ -208,9 +208,9 @@ public class StockWaitServiceImpl extends ServiceImpl<StockWaitMapper, StockWait
|
|
|
//更新已入库数量
|
|
|
BigDecimal receiptQuantity = stockWaitDetail.getReceiptQuantity() == null ? BigDecimal.ZERO : stockWaitDetail.getReceiptQuantity();
|
|
|
stockWaitDetail.setReceiptQuantity(receiptQuantity.add(temp.getQuantity()));
|
|
|
- if (stockWaitDetail.getReceiptQuantity().compareTo(stockWaitDetail.getQuantity()) > 0) {
|
|
|
- throw new ServiceException("入库数量+已入库数量不能大于待采购数量");
|
|
|
- }
|
|
|
+// if (stockWaitDetail.getReceiptQuantity().compareTo(stockWaitDetail.getQuantity()) > 0) {
|
|
|
+// throw new ServiceException("入库数量+已入库数量不能大于待采购数量");
|
|
|
+// }
|
|
|
|
|
|
//计算已经完全入库的数量
|
|
|
if (stockWaitDetail.getReceiptQuantity().compareTo(stockWaitDetail.getQuantity()) >= 0) {
|