| | |
| | | detailPagination.put("pageSize", detailPageSize); |
| | | detailPagination.put("pages", (int) Math.ceil((double) totalDetails / detailPageSize)); |
| | | |
| | | // 应付金额逻辑不采用合同金额改成 发票金额减付款金额 |
| | | payableAmount = invoiceAmount.subtract(paymentAmount); |
| | | res.put("invoiceAmount", invoiceAmount); |
| | | res.put("payableAmount", payableAmount); |
| | | res.put("paymentAmount", paymentAmount); |
| | |
| | | Collectors.toList() |
| | | ) |
| | | ); |
| | | BigDecimal amountDateTotal = BigDecimal.ZERO; |
| | | for (LocalDate localDate : dateListMap.keySet()) { |
| | | BigDecimal currentPaymentAmount = BigDecimal.ZERO; |
| | | BigDecimal invoiceAmount = BigDecimal.ZERO; |