Magidoc

BillingPipelineReportRow
Object

Fields

#

sourceType

Non-null

sourceId

ID !
Non-null

sourceDocumentNumber

The number the row's source document is known by — see BillingStatusReportRow.sourceDocumentNumber.

sourceLineId

sourceLineLabel

What the line itself says it is — an expense line's or purchase-order line's description, a time entry's note. Two billable lines on one expense report key on the same report and so render the same document number; without this the reader had two rows reading "ER-2026-101" and nothing telling them apart. Nullable because a time entry may carry no note, and never defaulted: a stand-in label would be this row claiming a description its source never wrote.

projectId

projectName

The name of the project projectId points at, scoped to what the requesting member may see — null when the project no longer exists, or is one this reader may not open. Never a stand-in: the reader renders the absence, and a name they cannot open is one this report may not leak.

clientAccountId

The customer this row's work is for.

A time entry, an expense line and a purchase-order line each name a project and none of them names a customer, so the attribution runs through the project's invoices: the client billing the most of it, the same rule the client-profitability rollup charges that project's cost by. Null where no live invoice has ever named the project — nothing in the books says who the work is for, which is a different fact from a name this workspace could not resolve.

clientAccountName

The name clientAccountId resolves to, or null for a customer this workspace cannot name.

ownerId

The person the source line belongs to — a time entry's author, an expense or purchase-order line's creator.

ownerName

The name of the person ownerId points at, so the ownership column reads as a person rather than a stored id. Null when the row names no owner, or names one this workspace cannot resolve.

status

Non-null

ageDays

Non-null

nextBillingDate

The day this row is expected to bill, or null where it cannot bill at all: a row carrying a blocker is not in the pipeline's queue, and dating one promised a billing day the report will not act on.

blocker

amount

Non-null

Usages

#

References

#

  • Field getBillingPipelineReport from Query