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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPosition
(String id, String title, String amount, String unit, int quantity) void
addPosition
(String id, String title, BigDecimal amount, String unit, int quantity) amount()
Updates amount out of positions.TextStyle.FULL
display name of the month ofdateFrom
.int
Year ofdateFrom
.Deprecated.int
Deprecated.int
Deprecated.int
Deprecated.int
int
int
int
int
int
long
months()
monthsPeriod
(String lang) Formatted period of invoice months:MonthFromName YearFromNumber - MonthToName YearToNumber
with month names for a specified language.void
setAmount
(BigDecimal value) void
setCreatedTime
(Date value) Deprecated.void
setCreatedUserId
(int value) Deprecated.void
setCreateTime
(Date value) void
setCreateUserId
(int value) void
setDateFrom
(Date value) void
void
void
setNumberCnt
(int numberCnt) void
setPaymentDate
(Date value) void
setPaymentUserId
(int value) void
setPositions
(List<Position> positions) void
setProcessId
(int processId) void
setSentTime
(Date value) void
setSentUserId
(int value) void
setTypeId
(int typeId) void
setTypeTitle
(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.FULL
display 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 YearToNumber
with month names for a specified language. IfdateFrom
anddateTo
are 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,
1
or 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
-