gaoluyang
2026-10-29 89b38b077f65f4cacab50cec932220ce012e90e4
src/main/java/com/ruoyi/purchase/service/impl/PurchaseLedgerServiceImpl.java
@@ -1108,6 +1108,13 @@
                    if (snapshot.getRemarks() == null) {
                        snapshot.setRemarks(purchaseLedger.getRemarks());
                    }
                    // 提交审批时若尚未填写合同金额,快照里会是0,这里用台账里的当前金额兜底
                    if (snapshot.getContractAmount() == null || snapshot.getContractAmount().compareTo(BigDecimal.ZERO) == 0) {
                        snapshot.setContractAmount(purchaseLedger.getContractAmount());
                    }
                    if (snapshot.getNetContractAmount() == null || snapshot.getNetContractAmount().compareTo(BigDecimal.ZERO) == 0) {
                        snapshot.setNetContractAmount(purchaseLedger.getNetContractAmount());
                    }
                    if (snapshot.getRecorderId() == null) {
                        snapshot.setRecorderId(purchaseLedger.getRecorderId());
                    }