PaymentsHelperPaymentsOfInvoice Method |
Calculates sum of payments the of invoice excluding refunded payments.
Namespace:
Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:
Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax public static decimal PaymentsOfInvoice(
Guid invoiceId,
Nullable<DateTime> date
)
Public Shared Function PaymentsOfInvoice (
invoiceId As Guid,
date As Nullable(Of DateTime)
) As Decimal
public:
static Decimal PaymentsOfInvoice(
Guid invoiceId,
Nullable<DateTime> date
)
static member PaymentsOfInvoice :
invoiceId : Guid *
date : Nullable<DateTime> -> decimal
Parameters
- invoiceId
- Type: SystemGuid
The invoice identifier. - date
- Type: SystemNullableDateTime
If set, the date is used to filter only payments made before the date.
Return Value
Type:
DecimalSum of payments made before given date.
Remarks
If payment was refunded, payment will not be accounted.
See Also