Добавил перепроведение начальных остатков, проверки и расчёт итога по строкам

This commit is contained in:
Kashey committed 2026-10-16 13:16:49 +03:00
1 parent 357f494a56
commit a1c4990243
6 files changed
+220 -29

No files matched your search

+16 -5
View File
@@ -4,17 +4,24 @@ import java.math.BigDecimal;
import java.time.LocalDate;
public class LedgerEntry {
private LocalDate date;
private Operation operation;
private Account account;
private final LocalDate date;
private final Long operationId;
private final Account account;
private Category category;
private final BigDecimal deltaAmount;
public LedgerEntry(LocalDate date, Long operationId, Account account, Category category, BigDecimal deltaAmount) {
this.date = date;
this.operationId = operationId;
this.account = account;
this.category = category;
this.deltaAmount = deltaAmount;
}
public BigDecimal getDeltaAmount() {
return deltaAmount;
}
private BigDecimal deltaAmount;
public LocalDate getDate() {
return date;
}
@@ -22,4 +29,8 @@ public class LedgerEntry {
public Account getAccount() {
return account;
}
public Long getOperationId() {
return operationId;
}
}