# PurchasingOrderController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Purchasing/PurchasingOrderController.cs` (line 18)

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

## Where it refuses work

- `PurchasingOrderController` stops the work with an early return when `!isFound`, in 8 places.
- `PurchasingOrderController` stops the work with an early return when `!entity.HasObject`, in 3 places.
- `PurchasingOrderController` stops the work with an early return when `isEntitySaved == Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 3 places.
- `PurchasingOrderController` stops the work with an early return when `!isJobFound`, in 2 places.
- `PurchasingOrderController` stops the work with an early return when `obj.Id == 0`, in 2 places.
- `PurchasingOrderController` stops the work with an early return when `isRejected != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 2 places.

## Relationships

- MODULE_DECLARES → `GetOrdersByJobId`
- MODULE_DECLARES → `GetOrderById`
- MODULE_DECLARES → `GetCancelReasonById`
- MODULE_DECLARES → `GetRejectReasonById`
- MODULE_DECLARES → `CreateOrder`
- MODULE_DECLARES → `UpdateOrder`
- MODULE_DECLARES → `ChangeOrderStage`
- MODULE_DECLARES → `DeliverOrder`
- MODULE_DECLARES → `UnDeliverOrder`
- MODULE_DECLARES → `ConvertOfferToOrder`
- MODULE_DECLARES → `DeleteAmedmentOrder`
- MODULE_DECLARES → `UpdateCancelReason`
- MODULE_DECLARES → `UpdateRejectReason`
- MODULE_DECLARES → `RejectPurchasingOrder`
- MODULE_DECLARES → `CancelPurchasingOrder`
- MODULE_DECLARES → `UndoRejectPurchasingOrder`
- MODULE_DECLARES → `UndoCancelPurchasingOrder`
- IMPORTS → `BaseController`
- IMPORTS → `PurchasingOrderBindingModel`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetCancelReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `GetRejectReasonById`
- IMPORTS → `PurchasingItemBindingModel`
- IMPORTS → `GetJobById`
- IMPORTS → `PurchasingJobBindingModel`
- IMPORTS → `UpdateCancelReason`
- IMPORTS → `UpdateCancelReason`
- IMPORTS → `CancelDetailBindingModel`
- IMPORTS → `PurchaseOrderCancelDetail`
- IMPORTS → `UpdateRejectReason`
- IMPORTS → `RejectDetailBindingModel`
- IMPORTS → `PurchaseOrderRejectDetail`

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