| | |
| | | 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; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * 查询付款登记列表分页 |
| | | * |
| | | * @param paymentRegistrationDto 付款登记 |
| | | * @return 付款登记集合 |
| | | */ |
| | | @Override |
| | | public IPage<PaymentRegistrationDto> paymentHistoryListPage(Page page, PaymentRegistrationDto paymentRegistrationDto) { |
| | | return paymentRegistrationMapper.paymentHistoryListPage(page, paymentRegistrationDto); |
| | | } |
| | | |
| | | // 批量查询采购台账(当月) |
| | | private Map<Long, List<PurchaseLedger>> batchQueryPurchaseLedgers(List<Long> supplierIds, LocalDate startDate, LocalDate endDate) { |
| | | LambdaQueryWrapper<PurchaseLedger> query = new LambdaQueryWrapper<>(); |