From 387ba6085841fe6765827c57e4cb125d4af515ef Mon Sep 17 00:00:00 2001 From: liyong <18434998025@163.com> Date: 星期五, 27 六月 2025 10:55:57 +0800 Subject: [PATCH] 2025-06-27 销售台账添加付款方式,新增开票时保存开票时间和录入人 --- src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java b/src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java index b5296d9..f4ce895 100644 --- a/src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java +++ b/src/main/java/com/ruoyi/sales/controller/SalesLedgerController.java @@ -65,6 +65,7 @@ if (salesLedger.getId().intValue() == invoiceLedgerDto.getSalesLedgerId()) { BigDecimal noInvoiceAmountTotal = salesLedger.getContractAmount().subtract(invoiceLedgerDto.getInvoiceTotal()); salesLedger.setNoInvoiceAmountTotal(noInvoiceAmountTotal); + } } } @@ -199,8 +200,8 @@ salesLedger.setInvoiceTotal(invoiceTotal); } if (ObjectUtils.isNotEmpty(salesLedgerDto.getStatus())) { - if (salesLedgerDto.getStatus()==1) { - iPage.getRecords().removeIf(salesLedger -> !Objects.equals(salesLedger.getNoInvoiceAmountTotal(), new BigDecimal("0.00"))); + if (salesLedgerDto.getStatus()) { + iPage.getRecords().removeIf(salesLedger -> Objects.equals(salesLedger.getNoInvoiceAmountTotal(), new BigDecimal("0.00"))); } } return iPage; -- Gitblit v1.9.3