Links an Invoice to an InvoicePayment. Ie how much of the payment was against this invoice
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| adminOrg | Organisation | The account, ie the top level administrative organisation, this allocation belongs to. Always set, and lookups by id are scoped by it. |
| createdBy | Profile | The profile who made this allocation. Always set. |
| createdDate | Date | When the allocation was made, which can be later than the payment date if the payment was applied to the invoice after the event. |
| id | Long | The database-assigned unique identifier for this allocation. |
| invoice | Invoice | The invoice the money was applied to. Always set. |
| invoicePayment | InvoicePayment | The payment the money came from. Always set. One payment can have several of these links, one per invoice it was spread across. |
| paymentAmount | BigDecimal | How much of the payment was applied to this invoice, in the account's currency. The links for one payment should add up to no more than the payment's own amount. |
Methods
getId()
Returns: Long
The database-assigned unique identifier for this allocation.
getAdminOrg()
Returns: Organisation
The account, ie the top level administrative organisation, this allocation belongs to. Always set, and lookups by id are scoped by it.
getInvoice()
Returns: Invoice
The invoice the money was applied to. Always set.
getInvoicePayment()
Returns: InvoicePayment
The payment the money came from. Always set. One payment can have several of these links, one per invoice it was spread across.
getCreatedBy()
Returns: Profile
The profile who made this allocation. Always set.
getCreatedDate()
Returns: Date
When the allocation was made, which can be later than the payment date if the payment was applied to the invoice after the event.
getPaymentAmount()
Returns: BigDecimal
How much of the payment was applied to this invoice, in the account's currency. The links for one payment should add up to no more than the payment's own amount.