# PurchasingItemController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Purchasing/PurchasingItemController.cs` (line 15)

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

## Where it refuses work

- `PurchasingItemController` stops the work with an early return when `items.Count == 0`, in 7 places.
- `PurchasingItemController` stops the work with an early return when `obj.Id == 0`, in 3 places.
- `PurchasingItemController` stops the work with an early return when `isRegreted == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.
- `PurchasingItemController` stops the work with an early return when `isCanceled == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.
- `PurchasingItemController` stops the work with an early return when `isrejected == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.
- `PurchasingItemController` stops the work with an early return when `!logic.IsFound(model.Id)`.

## Relationships

- MODULE_DECLARES → `GetCancelReasonById`
- MODULE_DECLARES → `GetRegretReasonById`
- MODULE_DECLARES → `GetRejectReasonById`
- MODULE_DECLARES → `AcceptItem`
- MODULE_DECLARES → `DeleteItem`
- MODULE_DECLARES → `DeleteItems`
- MODULE_DECLARES → `UnDeliverOrderItems`
- MODULE_DECLARES → `RegretItems`
- MODULE_DECLARES → `CancelItems`
- MODULE_DECLARES → `RejectItems`
- MODULE_DECLARES → `UndoRegretItems`
- MODULE_DECLARES → `UndoCancelItems`
- MODULE_DECLARES → `UndoRejectItems`
- MODULE_DECLARES → `ReactivateItems`
- IMPORTS → `BaseController`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetRegretReasonById`
- IMPORTS → `GetRegretReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `PurchasingItemBindingModel`
- IMPORTS → `PurchaseItem`
- IMPORTS → `RegretItemsDetailBindingModel`
- IMPORTS → `PurchaseItemRegretDetail`
- IMPORTS → `CancelItemsDetailBindingModel`
- IMPORTS → `PurchaseItemCancelDetail`
- IMPORTS → `RejectItemsDetailBindingModel`
- IMPORTS → `PurchaseItemRejectDetail`

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