# UpcomingPrincipalInvoiceController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Sales/UpcomingPrincipalInvoiceController.cs` (line 12)

**Part of:** [Pams](subsystem-pams)

## Where it refuses work

- `UpcomingPrincipalInvoiceController` stops the work with an early return when `!new UpcomingPrincipalInvoice().IsFound(ID, CompanyID)`.
- `UpcomingPrincipalInvoiceController` stops the work with an early return when `item == null || item.PrincipalInvoiceId == 0`.

## Relationships

- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `GetInvoicesForDisplay`
- MODULE_DECLARES → `GetInvoicesForJob`
- MODULE_DECLARES → `ConvertToDraft`
- IMPORTS → `BaseController`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `UpcomingPrincipalInvoice`
- IMPORTS → `GetById`
- IMPORTS → `GetById`
- IMPORTS → `GetInvoicesForDisplay`
- IMPORTS → `GetInvoicesForDisplay`
- IMPORTS → `InvoiceStatus`
- IMPORTS → `ListQueryParameters`
- IMPORTS → `PrincipalInvoiceListBindingModel`
- IMPORTS → `GetInvoicesForJob`
- IMPORTS → `ConvertToDraft`

## 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.

### calls by (2)

- `AppSettings` — `Frontend/src/app/settings/app/app.settings.ts`:241
- `AppSettings` — `Pams/Web/Pams.Web/Client/app/settings/app/app.settings.ts`:126
