CostPrice
No description
type CostPrice {
id: String!
priceId: String!
createdAt: DateTime!
lastModifiedAt: DateTime!
quantityFrom: Int!
value: Float!
validFrom: DateTime
validTo: DateTime
}
Fields
CostPrice.id ● String! non-null scalar
Unique identifier for the cost price record.
Primary key used for cost price management and margin calculation operations.
CostPrice.priceId ● String! non-null scalar
Reference to the associated price record.
Foreign key linking this cost price to its base price for margin calculations and cost tracking.
CostPrice.createdAt ● DateTime! non-null scalar
Timestamp when the cost price record was initially created.
Used for audit trails and cost tracking history.
CostPrice.lastModifiedAt ● DateTime! non-null scalar
Timestamp when the cost price record was last updated.
Essential for tracking cost changes and margin analysis.
CostPrice.quantityFrom ● Int! non-null scalar
Minimum quantity threshold for this cost price tier to apply.
Minimum order quantity required for this cost price to be used in margin calculations and cost analysis.
CostPrice.value ● Float! non-null scalar
Cost value for this quantity tier.
Unit cost that applies when the minimum quantity threshold is met for margin calculations and profitability analysis.
CostPrice.validFrom ● DateTime scalar
Date when this cost price becomes active and available for margin calculations.
If not specified, the cost price is immediately effective. Used for scheduling cost price changes and managing time-based cost structures.
CostPrice.validTo ● DateTime scalar
Date when this cost price expires and is no longer available for margin calculations.
If not specified, the cost price remains active indefinitely. Used for temporary cost pricing and seasonal supplier rates.
Returned By
costPriceCreate mutation ● costPriceUpdate mutation
Member Of
CostPriceResponse object ● Price object