# CostCalculationMarginDetail

**Kind:** Class

**Source:** `Frontend/src/app/components/sales/margin-calculation/margin-calculation.ts` (line 62)

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

## Properties

| Property | Type |
|---|---|
| `Id` | `number` |
| `BranchId` | `number` |
| `PurchasePrice` | `number` |
| `TotalCost` | `number` |
| `TotalAdditionalCost` | `number` |
| `MarginAmount` | `number` |
| `CostCalculationId` | `number` |
| `MarginPercent` | `number` |
| `TotalSalesPrice` | `number` |
| `TotalSalesPriceAfterNegotiation` | `number` |
| `ItemDescription` | `string` |
| `CostCalculationMarginId` | `number` |
| `LastModifiedAt` | `Date` |
| `LastModifiedById` | `number` |
| `CreatedAt` | `Date` |
| `SalesItemId` | `number` |
| `CreatedById` | `number` |
| `_TotalMarginOfPurchasePrice` | `number` |
| `_CalculatedMarginOfPurchasePrice` | `number` |
| `_TotalMarginOfTotalCost` | `number` |
| `_CalculatedMarginOfTotalCost` | `number` |
| `_TotalMarginOfSalesPrice` | `number` |
| `_CalculatedMarginOfSalesPrice` | `number` |
| `_TotalNegotiationMargin` | `number` |

## Used by

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

### Imported by (2)

- `CostCalculationComponent` — `Frontend/src/app/components/sales/cost-calculation/cost-calculation.component.ts`:1
- `MarginByItemsComponent` — `Frontend/src/app/components/sales/margin-calculation/margin-by-items/margin-by-items.component.ts`:1
