Class Invoice

  • All Implemented Interfaces:

    public class Invoice
    extends Id
    See Also:
    Serialized Form
    • Constructor Detail

      • Invoice

        public Invoice()
    • Method Detail

      • 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

        public java.lang.String getNumber()
      • setNumber

        public void setNumber​(java.lang.String number)
      • getDateFrom

        public java.util.Date getDateFrom()
      • setDateFrom

        public void setDateFrom​(java.util.Date value)
      • getDateTo

        public java.util.Date getDateTo()
      • setToDate

        public void setToDate​(java.util.Date value)
      • getDateFromMonthDisplayName

        public java.lang.String getDateFromMonthDisplayName​(java.lang.String lang)
        TextStyle.FULL display name of the month of dateFrom.
        lang - language, e.g. 'en', 'ru'.
      • getDateFromYear

        public int getDateFromYear()
        Year of dateFrom.
      • getCreatedTime

        public java.util.Date getCreatedTime()
      • setCreatedTime

        public void setCreatedTime​(java.util.Date value)
      • getCreatedUserId

        public int getCreatedUserId()
      • setCreatedUserId

        public void setCreatedUserId​(int value)
      • getSentTime

        public java.util.Date getSentTime()
      • setSentTime

        public void setSentTime​(java.util.Date value)
      • getSentUserId

        public int getSentUserId()
      • setSentUserId

        public void setSentUserId​(int value)
      • getPaymentDate

        public java.util.Date getPaymentDate()
      • setPaymentDate

        public void setPaymentDate​(java.util.Date value)
      • getPaymentUserId

        public int getPaymentUserId()
      • setPaymentUserId

        public void setPaymentUserId​(int value)
      • getAmount

        public java.math.BigDecimal getAmount()
      • setAmount

        public void setAmount​(java.math.BigDecimal value)
      • amount

        public java.math.BigDecimal amount()
        Updates amount out of positions.
        the new value.
      • getPositions

        public java.util.List<Position> getPositions()
      • setPositions

        public void setPositions​(java.util.List<Position> positions)
      • addPosition

        public void addPosition​(java.lang.String id,
                                java.lang.String title,
                                java.math.BigDecimal amount,
                                java.lang.String unit,
                                int quantity)
      • addPosition

        public void addPosition​(java.lang.String id,
                                java.lang.String title,
                                java.lang.String amount,
                                java.lang.String unit,
                                int quantity)