Magidoc

getFinanceCustomerInvoicesCount
Query

Count the invoices selected by the same company, period and currency filters as the list. Access: finance enabled and visibility of the invoice company. Errors: workspace access denied or an unknown accounting period.

Arguments

#

workspaceId

ID !
Non-null

currency

Same currency narrowing as the invoice list.

projectId

clientAccountId

openItemsOnly

See getFinanceCustomerInvoices — the count narrows by the same open-receivables predicate.

profitLossAwaitingPosting

See getFinanceCustomerInvoices — the count narrows by the same awaiting-posting predicate.

periodId

includeOtherPeriods

With periodId, keep its company scope but include invoices issued in other periods. Use for payments settling earlier invoices; an invoice issue date is not its payment date.

search

statuses

Response

#

Returns Int !.

Example

#