# UpcomingInvoiceController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Sales/UpcomingInvoiceController.cs` (line 13)

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

## Where it refuses work

- `UpcomingInvoiceController` stops the work with an early return when `!new UpcomingInvoiceLogic().IsFound(ID, CompanyID)`.
- `UpcomingInvoiceController` stops the work with an early return when `item == null || item.InvoiceID == 0`.
- `UpcomingInvoiceController` stops the work with an early return when `!domain.IsFound(invoiceId, CompanyID)`.
- `UpcomingInvoiceController` stops the work with an early return when `!isAllowedToEdit`.

## Relationships

- MODULE_DECLARES → `GetByID`
- MODULE_DECLARES → `GetInvoicesForDisplay`
- MODULE_DECLARES → `GetInvoicesForJob`
- MODULE_DECLARES → `ConvertToDraft`
- MODULE_DECLARES → `Delete`
- IMPORTS → `BaseController`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetByID`
- IMPORTS → `GetInvoicesForDisplay`
- IMPORTS → `GetInvoicesForDisplay`
- IMPORTS → `ListQueryParameters`
- IMPORTS → `GetInvoicesForJob`
- IMPORTS → `ConvertToDraft`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`
- IMPORTS → `Save`

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