|
|
@@ -230,7 +230,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
|
|
|
currencySet.forEach(currency -> {
|
|
|
Double payment = ioDetailSet.stream().filter(detail -> currency.equals(detail.getCurrency()))
|
|
|
.mapToDouble(detail -> detail.getSendPrice() * detail.getSendQty()).sum();
|
|
|
- amountList.add(new ApCheckAmount(currency, 100d));
|
|
|
+ amountList.add(new ApCheckAmount(currency, payment));
|
|
|
});
|
|
|
}
|
|
|
return amountList;
|
|
|
@@ -263,7 +263,7 @@ public class ErpProdIODetailServiceImpl implements ErpProdIODetailService {
|
|
|
currencySet.forEach(currency -> {
|
|
|
Double payment = detailSet.stream().filter(detail -> currency.equals(detail.getCurrency()) && null != detail.getPayment())
|
|
|
.mapToDouble(ErpProdIODetail::getPayment).sum();
|
|
|
- amountList.add(new ApCheckAmount(currency, 100d));
|
|
|
+ amountList.add(new ApCheckAmount(currency, payment));
|
|
|
});
|
|
|
return amountList;
|
|
|
} else {
|