|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.terms.Terms
org.geebis.books.model.terms.DaysDrivenTerms
@Name(value="daysDrivenTerms") public class DaysDrivenTerms
A DaysDrivenTerms is a Terms that is based off of a number of days from when
an invoice is sent. An example would be "NET 30" where an invoice is due in 30 days.
| Constructor Summary | |
|---|---|
DaysDrivenTerms()
|
|
DaysDrivenTerms(java.lang.String name)
|
|
DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent)
|
|
DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer days)
|
|
DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer days,
java.lang.Integer discountDays)
|
|
| Method Summary | |
|---|---|
java.util.Date |
calculateDiscountDate(java.util.Date issuedDate)
Gets the cut off date that a discount can be taken at with this terms |
java.util.Date |
calculateDueDate(java.util.Date issuedDate)
Gets the due date of an invoice with the passed in date |
java.lang.Integer |
getDays()
Gets the number of days before this terms is due |
java.lang.Integer |
getDiscountDays()
Gets the number of days that a discount may be taken on this terms |
void |
setDays(java.lang.Integer days)
Sets the number of days until this terms is due |
void |
setDiscountDays(java.lang.Integer discountDays)
Sets the number of days that a discount may be take on this terms |
| Methods inherited from class org.geebis.books.model.terms.Terms |
|---|
calculateDiscountAmount, calculateStatus, getDiscountPercent, getId, getName, getVersion, setDiscountPercent, setId, setName, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DaysDrivenTerms()
public DaysDrivenTerms(java.lang.String name)
public DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent)
public DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer days)
public DaysDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer days,
java.lang.Integer discountDays)
| Method Detail |
|---|
public java.lang.Integer getDays()
public void setDays(java.lang.Integer days)
days - the new number of days before this terms is duepublic java.lang.Integer getDiscountDays()
public void setDiscountDays(java.lang.Integer discountDays)
discountDays - the new number of days that a discount may be taken on this temrpublic java.util.Date calculateDiscountDate(java.util.Date issuedDate)
Terms
calculateDiscountDate in class TermsissuedDate - the date the invoice was issued
public java.util.Date calculateDueDate(java.util.Date issuedDate)
Terms
calculateDueDate in class TermsissuedDate - the date the invoice was issued
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||