|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.ap.Voucher
org.geebis.books.model.ap.Bill
@Name(value="bill") public class Bill
| Constructor Summary | |
|---|---|
Bill()
|
|
| Method Summary | |
|---|---|
double |
calculateDiscountAmount(java.util.Date projectedPayDate)
Gets the discount amount of the voucher if it's paid by the projected pay date |
java.util.Date |
calculateDiscountDate()
Calculates and returns the date that a discount can be taken if the voucher is paid before |
TermsStatus |
calculateTermsStatus(java.util.Date projectedPayDate)
Gets the terms status of the bill |
java.util.Date |
getDueDate()
Gets the due date for this bill |
Terms |
getTerms()
Gets the terms for this bill |
void |
setDueDate(java.util.Date dueDate)
Sets the due date for this bill |
void |
setTerms(Terms terms)
Sets the terms for this bill |
| Methods inherited from class org.geebis.books.model.ap.Voucher |
|---|
getAmount, getDate, getDescription, getExpenseLines, getId, getItemLines, getNumber, getVendor, getVersion, setAmount, setDate, setDescription, setExpenseLines, setId, setItemLines, setNumber, setVendor, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bill()
| Method Detail |
|---|
public Terms getTerms()
public void setTerms(Terms terms)
terms - the new terms for this billpublic java.util.Date getDueDate()
public void setDueDate(java.util.Date dueDate)
dueDate - the new due date for this billpublic TermsStatus calculateTermsStatus(java.util.Date projectedPayDate)
terms status of the bill
projectedPayDate - The projected pay date to use to calculate the terms status
terms status of the billTermsStatuspublic double calculateDiscountAmount(java.util.Date projectedPayDate)
projectedPayDate - the projected date to use to calculate the discount amount
public java.util.Date calculateDiscountDate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||