Package ru.bitel.bgbilling.modules.license.common.bean

# Class AdditionalAgreement

java.lang.Object
ru.bitel.common.model.Id
ru.bitel.bgbilling.modules.license.common.bean.AdditionalAgreement

All Implemented Interfaces:
  `Serializable`, `Idable`

public class AdditionalAgreement extends Id
Класс - дополнительное соглошение.Содержит такие вещи как - дата создания, номер соглашения, статус, сумму, ид сгенирированного документа и счета. update: теперь используется и для договора.

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `STATUS_NEW`
  `static final String`
  `STATUS_NEW_TEXT`
  `static final int`
  `STATUS_SIGN`
  `static final String`
  `STATUS_SIGN_TEXT`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AdditionalAgreement()`
  `AdditionalAgreement(int id, int copyId, int agreementNumber, Date data, int status, BigDecimal sum, List<SpecificationTitle> specificationList)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getAgreementNumber()`
  `int`
  `getBillId()`
  `int`
  `getChargeId()`
  `int`
  `getCopyId()`
  `Date`
  `getDate()`
  `int`
  `getDocumentId()`
  `int`
  `getInvoiceId()`
  `List<SpecificationTitle>`
  `getSpecification()`
  `int`
  `getStatus()`
  `BigDecimal`
  `getSum()`
  `boolean`
  `isSign()`
  `void`
  `setAgreementNumber(int agreementNumber)`
  `void`
  `setBillId(int id)`
  `void`
  `setChargeId(int id)`
  `void`
  `setCopyId(int copyId)`
  `void`
  `setDate(Date data)`
  `void`
  `setDocumentId(int id)`
  `void`
  `setInvoiceId(int invoiceId)`
  `void`
  `setSpecification(List<SpecificationTitle> specifiction)`
  `void`
  `setStatus(int status)`
  `void`
  `setSum(BigDecimal sum)`

  ### Methods inherited from class ru.bitel.common.model.Id

  `copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### STATUS_NEW

    public static final int STATUS_NEW
    See Also:
      - Constant Field Values

  - ### STATUS_SIGN

    public static final int STATUS_SIGN
    See Also:
      - Constant Field Values

  - ### STATUS_NEW_TEXT

    public static final String STATUS_NEW_TEXT
    See Also:
      - Constant Field Values

  - ### STATUS_SIGN_TEXT

    public static final String STATUS_SIGN_TEXT
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### AdditionalAgreement

    public AdditionalAgreement()

  - ### AdditionalAgreement

    public AdditionalAgreement(int id, int copyId, int agreementNumber, Date data, int status, BigDecimal sum, List<SpecificationTitle> specificationList)

- ## Method Details

  - ### getCopyId

    public int getCopyId()

  - ### setCopyId

    public void setCopyId(int copyId)

  - ### getAgreementNumber

    public int getAgreementNumber()
    Returns:
      Порядковый номер доп. соглошения у договора

  - ### setAgreementNumber

    public void setAgreementNumber(int agreementNumber)

  - ### getDate

    public Date getDate()

  - ### setDate

    public void setDate(Date data)

  - ### getStatus

    public int getStatus()
    Returns:
      вернет подписан или новое. 1 - подписан. 0 - новый.

  - ### setStatus

    public void setStatus(int status)

  - ### getSum

    public BigDecimal getSum()
    Returns:
      сумму на оплату, есть сумма разниц компанентов предыдущего допика с текущим.

  - ### setSum

    public void setSum(BigDecimal sum)

  - ### getDocumentId

    public int getDocumentId()
    Returns:
      номер документа.

  - ### setDocumentId

    public void setDocumentId(int id)

  - ### getBillId

    public int getBillId()
    Returns:
      номер счета.

  - ### setBillId

    public void setBillId(int id)

  - ### getInvoiceId

    public int getInvoiceId()

  - ### setInvoiceId

    public void setInvoiceId(int invoiceId)

  - ### getSpecification

    public List<SpecificationTitle> getSpecification()
    Returns:
      список всех компонентов с кол-вом лицензий.

  - ### setSpecification

    public void setSpecification(List<SpecificationTitle> specifiction)

  - ### getChargeId

    public int getChargeId()
    Returns:
      ид расхода.

  - ### setChargeId

    public void setChargeId(int id)

  - ### isSign

    public boolean isSign()
    Returns:
      - true, если подписан.