Appearance
RecordedCostState
Type: Object
An actual cost incurred, linked to cost categories, cost centers, and optionally jobs/operations
Fields
| Name | Type | Args | Description | Deprecated |
|---|---|---|---|---|
| costCategoryId | CostCategoryID! | Associated cost category ID | ||
| costCenterId | CostCenterID | Associated cost center ID (optional) | ||
| costRateId | CostRateID | Cost rate used for this record (optional) | ||
| createdAt | String! | Creation timestamp (ISO8601) | ||
| currency | CurrencyISO! | Currency code | ||
| description | String | Description or notes | ||
| id | RecordedCostID! | Unique identifier | ||
| jobId | JobID | Related job ID (optional) | ||
| quantity | Float! | Quantity consumed | ||
| recordedAt | ISO8601! | Date the cost was recorded (ISO8601) | ||
| recordedByUserId | UserID | User who recorded this cost | ||
| referenceId | String | External reference ID | ||
| referenceType | String | Type of external reference (e.g., 'order', 'operation') | ||
| totalCost | Float! | Total cost (quantity × unitRate) | ||
| unitRate | Float! | Cost per unit | ||
| updatedAt | String! | Last update timestamp (ISO8601) |