BriefElementPrice
BriefElementPrice contains simple pricing data for individual brief elements. It provides a direct price-per-unit calculation for a specific BriefElement, making it easy to access element-level pricing without navigating the full BriefPrice cost breakdown.
Main Purpose
Section titled “Main Purpose”- Store unit pricing for individual brief elements
- Provide quick access to element-level costs
- Support per-element price calculations
- Enable element-by-element cost comparison
Key Properties
Section titled “Key Properties”| Property | Type | Description |
|---|---|---|
id | UUID | Unique identifier |
briefElementId | UUID | Parent BriefElement reference |
unitPrice | number | Price per unit (€) |
quantity | number | Quantity for this price |
createdAt | Date | Creation timestamp |
updatedAt | Date | Update timestamp |
Main Relationships
Section titled “Main Relationships”| Relationship | Entity | Type | Description |
|---|---|---|---|
briefElement | BriefElement | One-to-One | Parent brief element |
Price Calculation
Section titled “Price Calculation”Total Element Cost:
const unitPrice = briefElement.briefElementPrice.unitPrice;const quantity = briefElement.briefElementPrice.quantity;const totalElementCost = unitPrice * quantity;Use Cases
Section titled “Use Cases”- Element Pricing: Get direct unit price for a specific element
- Cost Comparison: Compare unit prices between different elements
- Quote Line Items: Use as basis for quote line item pricing
- ERP Integration: Map element prices to ERP quote lines
Relationship to BriefPrice
Section titled “Relationship to BriefPrice”- BriefElementPrice: Simple unit pricing at element level
- BriefPrice: Complete pricing with all costs, breakdowns, and manufacturing details
While BriefPrice provides the comprehensive pricing analysis for the entire brief, BriefElementPrice offers a simplified view focused on individual element costs.
Accessing Data
Section titled “Accessing Data”BriefElementPrice is accessed through the BriefElement:
GET /briefs/:id/detailsReturns brief with elements, each containing briefElementPrice object.
- Simple 1:1 relationship with BriefElement
- Typically calculated from BriefPrice data
- Provides element-level pricing breakdown
See Also
Section titled “See Also”- BriefElement - Parent element entity
- BriefPrice - Complete pricing entity
- Brief Integration Guide - Complete integration documentation