Magidoc

OpportunityLine
Object

Fields

#

_id

ID !
Non-null

agreedLineId

Lineage identity: stable across revisions of the proposal where the row id is not. Null only on lines written before lineage shipped, where the row id is the lineage root.

workspaceId

ID !
Non-null

opportunityId

ID !
Non-null

productRef

Non-null

lineType

Non-null

title

Non-null

notes

quantity

Non-null

unitAmount

Non-null

unitCost

Null for viewers outside the workspace's cost-rates permission, who read prices and never costs.

taxAmount

totalAmount

Non-null

discountPercent

Percentage a discount line (0 < n ≤ 100) or fee line (0 ≤ n ≤ 100) is stated as. Null on fixed amounts and on standard lines. When set, the server materializes unitAmount and pins quantity to 1: a fee from the pre-tax subtotal of the included standard lines, a discount from the pre-tax subtotal of the included non-discount lines, fees included.

fieldOverrides

unitLabel

groupLabel

phaseLabel

includedInProposal

Non-null

sortOrder

Non-null

changeLog

Non-null

billingRule

How this line's money gets asked for, frozen into the accepted snapshot when a revision is agreed. Null means the proposal-level default governs; a line with neither is reported unbillable by the generator, which is a state rather than an error.

sourceActionId

Planning-project card this line was estimated from; null on lines not imported from one.

placeholderId

Role placeholder whose bill and cost rates price this line; null when no role prices it.

weeks

Working weeks (Mon–Fri) the line's deliverable runs, to one decimal; null when unknown.

Usages

#

References

#