|
@@ -142,6 +142,10 @@ public class PurchaseOrderInvoiceServiceImpl extends ServiceImpl<PurchaseOrderIn
|
|
|
}
|
|
|
invoiceCommodityDtos.add(invoiceCommodityDto);
|
|
|
}
|
|
|
+ BigDecimal allNumber = invoiceCommodityDtos.stream()
|
|
|
+ .filter(commodityDto -> commodityDto.getNumber() != null).map(InvoiceCommodityDto::getNumber)
|
|
|
+ .reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
+ purchaseOrderInvoiceDetailsVo.setNumber(allNumber);
|
|
|
purchaseOrderInvoiceDetailsVo.setInvoiceCommodityList(invoiceCommodityDtos);
|
|
|
}
|
|
|
return purchaseOrderInvoiceDetailsVo;
|