|
@@ -94,7 +94,7 @@ public class ChannelGoodsSettleMgrController extends BaseApiController {
|
|
|
channelGoodsOrderSettleVO.setTotalVerifyQty(channelGoodsList.stream().mapToInt(ChannelGoods::getVerifyQty).sum());
|
|
|
Integer totalPurchaseCost = 0;
|
|
|
for (ChannelGoods channelGoods : channelGoodsList) {
|
|
|
- totalPurchaseCost += channelGoods.getPurchaseCost() * channelGoods.getSettleQty();
|
|
|
+ totalPurchaseCost += channelGoods.getPurchaseCost() * channelGoods.getQuantity();
|
|
|
}
|
|
|
channelGoodsOrderSettleVO.setTotalPurchaseCost(totalPurchaseCost);
|
|
|
channelGoodsOrderSettleVO.setStatus(channelGoodsList.get(0).getStatus());
|