# MarginCalculationService

**Kind:** Service

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

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

## Relationships

- IMPORTS → `AppSettings`
- IMPORTS → `DatasourceBySearchEnum`
- IMPORTS → `CostCalculationDetails`
- IMPORTS → `DefaultCostMarginTypeEnum`
- IMPORTS → `MarginCalculation`
- IMPORTS → `MarginCalculationForSalesItem`
- IMPORTS → `MarginRelatedToEnum`
- IMPORTS → `CostCalculation`
- IMPORTS → `CostCalculationItem`
- IMPORTS → `CostCalculationItemDetail`
- IMPORTS → `CostShareTypeEnum`
- 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
- `PreviewComponent` — `Frontend/src/app/components/sales/cost-calculation/preview/preview.component.ts`:1
- `MarginByItemsComponent` — `Frontend/src/app/components/sales/margin-calculation/margin-by-items/margin-by-items.component.ts`:1
- `OfferPanelDetailsComponent` — `Frontend/src/app/components/sales/new-job/offer-panel-details/offer-panel-details.component.ts`:1
- `OrderPanelDetailsComponent` — `Frontend/src/app/components/sales/new-job/order-panel-details/order-panel-details.component.ts`:1
