19 package org.turro.financials.stub;
21 import java.util.Currency;
22 import java.util.Date;
24 import org.turro.financials.entity.Document;
25 import org.turro.reflection.stub.DefaultStub;
26 import org.turro.reflection.stub.StubSet;
38 private Date receiptDate;
39 private Date documentDate;
40 private String documentNumber;
41 private Currency currency;
43 private boolean draft, noAncestors, noDescendants;
44 private String relatedPath;
47 private Set<RegisterStubmin> registers =
new StubSet<>(
RegisterStubmin.class);
48 private Set<DocumentLineStub> documentLines =
new StubSet<>(
DocumentLineStub.class);
51 silentlyInitializeValues(document);
63 return documentDefinition;
67 this.documentDefinition = documentDefinition;
75 this.contract = contract;
91 this.receiptDate = receiptDate;
99 this.documentDate = documentDate;
103 return documentNumber;
107 this.documentNumber = documentNumber;
115 this.currency = currency;
139 this.noAncestors = noAncestors;
143 return noDescendants;
147 this.noDescendants = noDescendants;
155 this.relatedPath = relatedPath;
163 this.forcedView = forcedView;
171 this.descendants = descendants;
179 this.registers = registers;
183 return documentLines;
187 this.documentLines = documentLines;
void setNoDescendants(boolean noDescendants)
void setReceiptDate(Date receiptDate)
ContractStubmin getContract()
void setRegisters(Set< RegisterStubmin > registers)
DocumentStub(Document document)
void setForcedView(RegisterViewStub forcedView)
Set< DocumentLineStub > getDocumentLines()
RegisterViewStub getForcedView()
void setNotes(String notes)
void setDocumentLines(Set< DocumentLineStub > documentLines)
void setCurrency(Currency currency)
void setDescendants(Set< DocumentRelationStub > descendants)
boolean isNoDescendants()
void setRelatedPath(String relatedPath)
void setQuote(double quote)
void setDocumentNumber(String documentNumber)
void setNoAncestors(boolean noAncestors)
DocumentDefinitionStubmin getDocumentDefinition()
void setContract(ContractStubmin contract)
String getDocumentNumber()
void setDocumentDefinition(DocumentDefinitionStubmin documentDefinition)
Set< DocumentRelationStub > getDescendants()
Set< RegisterStubmin > getRegisters()
void setDocumentDate(Date documentDate)
void setDraft(boolean draft)