implemented creation of successor document
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user