|
@@ -343,7 +343,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
// 返回兑人民币后金额
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
- p.setAccountPaid(payAmount);
|
|
|
+ p.setPayForGoods(payAmount);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -404,7 +404,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
if (CollectionUtils.isNotEmpty(pList)) {
|
|
|
BigDecimal purchaseAmount = pList.stream().map(purchase -> {
|
|
|
//获取汇率
|
|
|
- BigDecimal rate = purchase.getRate() == null ? BigDecimal.ZERO : purchase.getRate();
|
|
|
+ BigDecimal rate = purchase.getRate() == null ? BigDecimal.ONE : purchase.getRate();
|
|
|
// 获取认领金额
|
|
|
BigDecimal money = purchase.getAmount() == null ? BigDecimal.ZERO : purchase.getAmount();
|
|
|
// 返回兑人民币后金额
|
|
@@ -426,7 +426,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
// 返回兑人民币后金额
|
|
|
return rate.multiply(money);
|
|
|
}).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
- p.setAccountPaid(payAmount);
|
|
|
+ p.setPayForGoods(payAmount);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -518,7 +518,7 @@ public class SaleStatementServiceImpl implements SaleStatementService {
|
|
|
for (ProfitSettlementVo profitSettlementVo : list) {
|
|
|
|
|
|
// 收入
|
|
|
- BigDecimal totalIncome = profitSettlementVo.getOtherIncome().add(profitSettlementVo.getContractArrival());
|
|
|
+ BigDecimal totalIncome = profitSettlementVo.getOtherIncome().add(profitSettlementVo.getContractArrival().add(profitSettlementVo.getTaxReturnMoney()));
|
|
|
profitSettlementVo.setTotalIncome(totalIncome);
|
|
|
|
|
|
// 支出
|