# MarginCalculation

**Kind:** Class

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

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

## Properties

| Property | Type |
|---|---|
| `Id` | `number` |
| `BranchId` | `number` |
| `SalesJobId` | `number` |
| `BuyoutJobId` | `number` |
| `SalesOfferId` | `number` |
| `SalesJobNo` | `string` |
| `SellingCurrencyCode` | `string` |
| `SellingCurrencySymbol` | `string` |
| `SalesMarginPercent` | `number` |
| `TotalPurchasePrice` | `number` |
| `TotalAdditionalCost` | `number` |
| `NegotiationMarginPercent` | `number` |
| `TotalSalesPrice` | `number` |
| `TotalSalesPriceAfterNegotiation` | `number` |
| `_RatioOfSellingPriceToPurchsePrice` | `number` |
| `CostCalculationSalesItems` | `MarginCalculationForSalesItem[]` |
| `CostCalculationMargins` | `CostCalculationDetails[]` |
| `LastModifiedAt` | `Date` |
| `LastModifiedById` | `number` |
| `_TotalMarginExceptNegotiation` | `number` |

## Relationships

- IMPORTS → `CostCalculationSalesItem`
- IMPORTS → `SalesItems`

## Used by

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

### Imported by (5)

- `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
- `MarginCalculationService` — `Frontend/src/app/components/sales/margin-calculation/margin-calculation.service.ts`:1
- `OfferPanelDetailsComponent` — `Frontend/src/app/components/sales/new-job/offer-panel-details/offer-panel-details.component.ts`:1
- `CostShareTypeEnum` — `Frontend/src/app/models/sales/new-job/cost-calculation.ts`:3
