# PrincipalInvoicePaymentController

**Kind:** Controller

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

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

## Where it refuses work

- `PrincipalInvoicePaymentController` stops the work with an early return when `!isFound`, in 5 places.
- `PrincipalInvoicePaymentController` stops the work with an early return when `!invoice.HasObject`, in 2 places.
- `PrincipalInvoicePaymentController` stops the work with an early return when `upcomingPrincipalInvoiceId < 1`.

## Relationships

- MODULE_DECLARES → `GetPrincipalInvoices`
- MODULE_DECLARES → `GetPrincipalInvoices`
- MODULE_DECLARES → `GetPrincipalInvoice`
- MODULE_DECLARES → `UpdateInvoice`
- MODULE_DECLARES → `ConsiderInvoiceAsPaid`
- MODULE_DECLARES → `ConsiderInvoiceAsNotPaid`
- MODULE_DECLARES → `RevertBackToUpcoming`
- IMPORTS → `BaseController`
- IMPORTS → `InvoiceStatus`
- IMPORTS → `PrincipalInvoiceListBindingModel`
- IMPORTS → `UpcomingPrincipalInvoice`
- IMPORTS → `PrincipalInvoiceBindingModel`

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