implemented creation of successor document

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-08-31 14:56:10 +02:00
parent 8d16a93b69
commit 147f169c7b
5 changed files with 54 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ public final class Document implements Mappable {
private final Set<String> dirtyFields = new HashSet<>();
public Document(long id, long companyId, String number, Type type, LocalDate date, State state, Template template, String delivery, String head, String footer, String currency, String thousandsSeparator, Sender sender, Customer customer, PositionList positions) {
public Document(long id, long companyId, String number, Type type, LocalDate date, State state, Template template, String delivery, String head, String footer, String currency, String decimalSeparator, Sender sender, Customer customer, PositionList positions) {
this.id = id;
this.companyId = companyId;
this.number = number;
@@ -76,7 +76,7 @@ public final class Document implements Mappable {
this.sender = sender;
this.customer = customer;
this.positions = positions;
this.decimalSeparator = thousandsSeparator;
this.decimalSeparator = decimalSeparator;
positions.setDocId(id);
if (id == 0) dirtyFields.add(ID);
}