|
|||||||||
| 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.DateDrivenTerms
@Name(value="dateDrivenTerms") public class DateDrivenTerms
A DateDrivenTerms is a Terms that goes off of the day of month rather than
a number of days after the invoice is due.
| Constructor Summary | |
|---|---|
DateDrivenTerms()
|
|
DateDrivenTerms(java.lang.String name)
|
|
DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent)
|
|
DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day)
|
|
DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day,
java.lang.Integer cutOffDays)
|
|
DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day,
java.lang.Integer cutOffDays,
java.lang.Integer discountDay)
|
|
| 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 |
getCutOffDays()
Gets the cut off days for this terms. |
java.lang.Integer |
getDay()
Returns the day of the month that this terms is due by |
java.lang.Integer |
getDiscountDay()
Sets the discount day for this terms. |
void |
setCutOffDays(java.lang.Integer cutOffDays)
Sets the cut off days for this terms. |
void |
setDay(java.lang.Integer day)
Sets the day of the month that this terms is due by |
void |
setDiscountDay(java.lang.Integer discountDay)
Sets the discount day of the month for 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 DateDrivenTerms()
public DateDrivenTerms(java.lang.String name)
public DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent)
public DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day)
public DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day,
java.lang.Integer cutOffDays)
public DateDrivenTerms(java.lang.String name,
java.lang.Double discountPercent,
java.lang.Integer day,
java.lang.Integer cutOffDays,
java.lang.Integer discountDay)
| Method Detail |
|---|
public java.lang.Integer getDay()
public void setDay(java.lang.Integer day)
day - the new day of the month for this termspublic java.lang.Integer getCutOffDays()
public void setCutOffDays(java.lang.Integer cutOffDays)
cutOffDays - the new number of days to cut offpublic java.lang.Integer getDiscountDay()
public void setDiscountDay(java.lang.Integer discountDay)
discountDay - the new discount day of month for this termspublic 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 | ||||||||