◆ appendAmount()
double org.turro.financials.entity.ContractExpiry.appendAmount |
( |
Document |
source, |
|
|
Document |
destination, |
|
|
Contract |
store, |
|
|
double |
pendingAmount |
|
) |
| |
Definition at line 230 of file ContractExpiry.java.
232 if(documentDefinition.
hasColumn(DocumentColumn.DCOL_TAX)) {
233 for(AmountTaxable at : source.getAmounts().getTaxables()) {
234 DocumentLine dl =
new DocumentLine();
235 dl.setDocument(destination);
236 if(concept !=
null) {
237 dl.setConcept(concept +
" [" + at.getTax() +
"]");
239 pendingAmount = assignAmount(dl, getAmount(at.getAmount()), pendingAmount);
240 dl.setTax(at.getTax());
241 dl.setLineType(lineType);
242 dl.setContractPreference(source.getDefaultContractPreference());
244 dl.setLineOrder(count++);
245 destination.getDocumentLines().add(dl);
248 DocumentLine dl =
new DocumentLine();
249 dl.setDocument(destination);
250 if(concept !=
null) {
251 dl.setConcept(concept);
253 pendingAmount = assignAmount(dl, getAmount(source.getTotalAmount()), pendingAmount);
254 dl.setLineType(lineType);
255 dl.setContractPreference(source.getDefaultContractPreference());
257 dl.setLineOrder(count++);
258 destination.getDocumentLines().add(dl);
260 return pendingAmount;
boolean hasColumn(DocumentColumn documentColumn)
◆ entityId()
Object org.turro.financials.entity.ContractExpiry.entityId |
( |
| ) |
|
◆ generateFlow()
double org.turro.financials.entity.ContractExpiry.generateFlow |
( |
Document |
document, |
|
|
double |
pendingAmount, |
|
|
int |
count |
|
) |
| |
Definition at line 177 of file ContractExpiry.java.
178 Document ndoc =
new Document();
179 ndoc.setDocumentDate(newDate(document.getDocumentDate()));
180 ndoc.setContract(document.getContract());
181 ndoc.setCurrency(document.getCurrency());
182 ndoc.setDocumentNumber(document.getDocumentNumber() +
"/" + count);
183 ndoc.setReceiptDate(ndoc.getDocumentDate());
184 ndoc.setDocumentDefinition(documentDefinition);
185 ndoc.setDraft(document.isDraft());
186 ndoc.setNotes(document.getNotes());
187 pendingAmount =
appendAmount(document, ndoc, getStore(ndoc), pendingAmount);
188 DocumentRelation dr =
new DocumentRelation();
189 dr.setAncestor(document);
190 dr.setDescendant(ndoc);
191 document.getDescendants().add(dr);
192 return pendingAmount;
double appendAmount(Document source, Document destination, Contract store, double pendingAmount)
◆ getAmountValue()
double org.turro.financials.entity.ContractExpiry.getAmountValue |
( |
| ) |
|
◆ getConcept()
String org.turro.financials.entity.ContractExpiry.getConcept |
( |
| ) |
|
◆ getContractFlow()
ContractFlow org.turro.financials.entity.ContractExpiry.getContractFlow |
( |
| ) |
|
◆ getDayOfWeek()
int org.turro.financials.entity.ContractExpiry.getDayOfWeek |
( |
| ) |
|
◆ getDaysOfMonth()
Set<Integer> org.turro.financials.entity.ContractExpiry.getDaysOfMonth |
( |
| ) |
|
◆ getDaysToAdd()
int org.turro.financials.entity.ContractExpiry.getDaysToAdd |
( |
| ) |
|
◆ getDocumentDefinition()
◆ getExcludedMonths()
Set<Integer> org.turro.financials.entity.ContractExpiry.getExcludedMonths |
( |
| ) |
|
◆ getId()
long org.turro.financials.entity.ContractExpiry.getId |
( |
| ) |
|
◆ getLineType()
LineType org.turro.financials.entity.ContractExpiry.getLineType |
( |
| ) |
|
◆ getPercentValue()
double org.turro.financials.entity.ContractExpiry.getPercentValue |
( |
| ) |
|
◆ isEmpty()
boolean org.turro.financials.entity.ContractExpiry.isEmpty |
( |
| ) |
|
◆ setAmountValue()
void org.turro.financials.entity.ContractExpiry.setAmountValue |
( |
double |
amountValue | ) |
|
◆ setConcept()
void org.turro.financials.entity.ContractExpiry.setConcept |
( |
String |
concept | ) |
|
◆ setContractFlow()
void org.turro.financials.entity.ContractExpiry.setContractFlow |
( |
ContractFlow |
contractFlow | ) |
|
◆ setDayOfWeek()
void org.turro.financials.entity.ContractExpiry.setDayOfWeek |
( |
int |
dayOfWeek | ) |
|
◆ setDaysOfMonth()
void org.turro.financials.entity.ContractExpiry.setDaysOfMonth |
( |
Set< Integer > |
daysOfMonth | ) |
|
◆ setDaysToAdd()
void org.turro.financials.entity.ContractExpiry.setDaysToAdd |
( |
int |
daysToAdd | ) |
|
◆ setDocumentDefinition()
void org.turro.financials.entity.ContractExpiry.setDocumentDefinition |
( |
DocumentDefinition |
documentDefinition | ) |
|
◆ setExcludedMonths()
void org.turro.financials.entity.ContractExpiry.setExcludedMonths |
( |
Set< Integer > |
excludedMonths | ) |
|
◆ setId()
void org.turro.financials.entity.ContractExpiry.setId |
( |
long |
id | ) |
|
◆ setLineType()
void org.turro.financials.entity.ContractExpiry.setLineType |
( |
LineType |
lineType | ) |
|
◆ setPercentValue()
void org.turro.financials.entity.ContractExpiry.setPercentValue |
( |
double |
percentValue | ) |
|
The documentation for this class was generated from the following file: