|
|
@@ -200,7 +200,7 @@ public class CommodityInOutboundServiceImpl implements CommodityInOutboundServic
|
|
|
Double totalQty = 0.0d;
|
|
|
Double price = 0.0d;
|
|
|
if (NumberUtil.compare(product.getPrice(), DoubleConstant.zero) > 0 && NumberUtil.compare(product.getErpReserve(), DoubleConstant.zero) > 0) {
|
|
|
- price = NumberUtil.add(price, NumberUtil.mul(product.getErpReserve(), inOutboundDetail.getQty()));
|
|
|
+ price = NumberUtil.add(price, NumberUtil.mul(product.getErpReserve(), product.getPrice()));
|
|
|
totalQty = NumberUtil.add(totalQty, product.getErpReserve());
|
|
|
}
|
|
|
if (NumberUtil.compare(inOutboundDetail.getPrice(), DoubleConstant.zero) > 0 && NumberUtil.compare(inOutboundDetail.getQty(), DoubleConstant.zero) > 0) {
|