调播入库修改
This commit is contained in:
parent
9df15a19ad
commit
8bd89b72be
|
|
@ -269,12 +269,14 @@ public class GoodsTransferServiceImpl implements IGoodsTransferService {
|
|||
imsIntoInventoryDetailAdd.setInventoryId(outInventoryDetail.getInventoryId());
|
||||
BigDecimal fetchNum = outInventoryDetail.getFetchNum();
|
||||
Long totalPrice = outInventoryDetail.getTotalPrice();
|
||||
if(totalPrice !=null && totalPrice > 0) {
|
||||
BigDecimal price = QuantityCalculator.calculateUnitPrice(totalPrice,fetchNum);
|
||||
imsIntoInventoryDetailAdd.setUnitPrice(price.longValue());
|
||||
} else {
|
||||
throw new ServiceException("调拨出库单明细总价不能为空或小于0");
|
||||
}
|
||||
BigDecimal price = QuantityCalculator.calculateUnitPrice(totalPrice,fetchNum);
|
||||
imsIntoInventoryDetailAdd.setUnitPrice(price.longValue());
|
||||
// if(totalPrice !=null && totalPrice > 0) {
|
||||
// BigDecimal price = QuantityCalculator.calculateUnitPrice(totalPrice,fetchNum);
|
||||
// imsIntoInventoryDetailAdd.setUnitPrice(price.longValue());
|
||||
// } else {
|
||||
// throw new ServiceException("调拨出库单明细总价不能为空或小于0");
|
||||
// }
|
||||
imsIntoInventoryDetailAdd.setMaterialId(outInventoryDetail.getMaterialId());
|
||||
imsIntoInventoryDetailAdd.setSupplierId(outInventoryDetail.getSupplierId());
|
||||
imsIntoInventoryDetailAdd.setPurNum(outInventoryDetail.getFetchNum());
|
||||
|
|
|
|||
Loading…
Reference in New Issue