Class Invoice
java.lang.Object
org.bgerp.model.base.Id
org.bgerp.plugin.bil.invoice.model.Invoice
- All Implemented Interfaces:
Serializable,Id<Integer>
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPosition(String id, String title, String amount, String unit, int quantity) voidaddPosition(String id, String title, BigDecimal amount, String unit, int quantity) amount()Updates amount out of positions.TextStyle.FULLdisplay name of the month ofdateFrom.intYear ofdateFrom.Deprecated.intDeprecated.intDeprecated.intDeprecated.intintintintintintlongmonths()monthsPeriod(String lang) Formatted period of invoice months:MonthFromName YearFromNumber - MonthToName YearToNumberwith month names for a specified language.voidsetAmount(BigDecimal value) voidsetCreatedTime(Date value) Deprecated.voidsetCreatedUserId(int value) Deprecated.voidsetCreateTime(Date value) voidsetCreateUserId(int value) voidsetDateFrom(Date value) voidvoidvoidsetNumberCnt(int numberCnt) voidsetPaymentDate(Date value) voidsetPaymentUserId(int value) voidsetPositions(List<Position> positions) voidsetProcessId(int processId) voidsetSentTime(Date value) voidsetSentUserId(int value) voidsetTypeId(int typeId) voidsetTypeTitle(int typeTitle)
-
Constructor Details
-
Invoice
public Invoice()
-
-
Method Details
-
getTypeId
public int getTypeId() -
setTypeId
public void setTypeId(int typeId) -
getTypeTitle
public int getTypeTitle() -
setTypeTitle
public void setTypeTitle(int typeTitle) -
getProcessId
public int getProcessId() -
setProcessId
public void setProcessId(int processId) -
getNumberCnt
public int getNumberCnt() -
setNumberCnt
public void setNumberCnt(int numberCnt) -
getNumber
-
setNumber
-
getDateFrom
-
setDateFrom
-
getDateTo
-
setDateTo
-
dateFromMonthDisplayName
TextStyle.FULLdisplay name of the month ofdateFrom.- Parameters:
lang- language, e.g. 'en', 'ru'.- Returns:
-
dateFromYear
public int dateFromYear()Year ofdateFrom.- Returns:
-
monthsPeriod
Formatted period of invoice months:MonthFromName YearFromNumber - MonthToName YearToNumberwith month names for a specified language. IfdateFromanddateToare in the same month, then only it is shown without range.- Parameters:
lang- the language of months names.- Returns:
-
months
public long months()- Returns:
- count of invoice months,
1or more.
-
getDateFromMonthDisplayName
Deprecated. -
getDateFromYear
Deprecated. -
getCreateTime
-
setCreateTime
-
getCreatedTime
Deprecated. -
setCreatedTime
Deprecated. -
getCreateUserId
public int getCreateUserId() -
setCreateUserId
public void setCreateUserId(int value) -
getCreatedUserId
Deprecated. -
setCreatedUserId
Deprecated. -
getSentTime
-
setSentTime
-
getSentUserId
public int getSentUserId() -
setSentUserId
public void setSentUserId(int value) -
getPaymentDate
-
setPaymentDate
-
getPaymentUserId
public int getPaymentUserId() -
setPaymentUserId
public void setPaymentUserId(int value) -
getAmount
-
setAmount
-
amount
Updates amount out of positions.- Returns:
- the new value.
-
getPositions
-
setPositions
-
addPosition
-
addPosition
-