# CostCalculation

**Kind:** Class

**Source:** `Frontend/src/app/models/sales/new-job/cost-calculation.ts` (line 9)

**Part of:** [Frontend](subsystem-frontend-src-app)

## Properties

| Property | Type |
|---|---|
| `Id` | `number` |
| `BranchId` | `number` |
| `SalesJobId` | `number` |
| `SalesJobNo` | `string` |
| `BuyoutJobId` | `number` |
| `SalesOfferId` | `number` |
| `SalesOrderId` | `number` |
| `SellingCurrencyCode` | `string` |
| `SellingCurrencySymbol` | `string` |
| `CostCalculationMargins` | `CostCalculationDetails[]` |
| `CostCalculationItems` | `CostCalculationItem[]` |
| `CostCalculationSalesItems` | `MarginCalculationForSalesItem[]` |
| `LastModifiedAt` | `Date` |
| `LastModifiedById` | `number` |
| `CreatedAt` | `Date` |
| `CreatedById` | `number` |
| `_TotalAgreedMargin` | `number` |

## Used by

6 references from 6 files. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.

### Imported by (6)

- `CostCalculationComponent` — `Frontend/src/app/components/sales/cost-calculation/cost-calculation.component.ts`:1
- `PreviewComponent` — `Frontend/src/app/components/sales/cost-calculation/preview/preview.component.ts`:1
- `PreviewService` — `Frontend/src/app/components/sales/cost-calculation/preview/preview.service.ts`:1
- `MarginByItemsComponent` — `Frontend/src/app/components/sales/margin-calculation/margin-by-items/margin-by-items.component.ts`:1
- `MarginCalculationService` — `Frontend/src/app/components/sales/margin-calculation/margin-calculation.service.ts`:1
- `CostCalculationService` — `Frontend/src/app/services/sales/new-job/cost-calculation.service.ts`:1
