# SalesJobController

**Kind:** Controller

**Source:** `Pams/API/Pams.API/Controllers/Sales/SalesJobController.cs` (line 17)

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

## Where it refuses work

- `SalesJobController` stops the work with an early return when `!entity.HasObject`, in 19 places.
- `SalesJobController` stops the work with an early return when `!jobLogic.IsFound(jobId, CompanyID)`, in 18 places.
- `SalesJobController` stops the work with an early return when `!jobLogic.IsFound(model.ID, CompanyID)`, in 11 places.
- `SalesJobController` stops the work with an early return when `isSaved != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 7 places.
- `SalesJobController` stops the work with an early return when `isUnarchived != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 7 places.
- `SalesJobController` stops the work with an early return when `isCanceled != Business.Entity.EnumNewSales.EnumReturnMessage.SavedSuccessfuly`, in 4 places.

## Relationships

- MODULE_DECLARES → `GetLookupPeriod`
- MODULE_DECLARES → `GetLookupJobStatus`
- MODULE_DECLARES → `GetSalesJobsHaveNoSurvey`
- MODULE_DECLARES → `GetSalesJobsHaveNoSurveyFunnel`
- MODULE_DECLARES → `GetSalesJobsByBranch`
- MODULE_DECLARES → `GetSalesJobsByBranchGrouped`
- MODULE_DECLARES → `GetSalesJobsByBranchFunnel`
- MODULE_DECLARES → `GetInstandSalesJobsByClient`
- MODULE_DECLARES → `GetInstandSalesJobsFunnelByClient`
- MODULE_DECLARES → `GetSalesJobById`
- MODULE_DECLARES → `GetJobWithAllDetailesById`
- MODULE_DECLARES → `GetSalesJobWithLeadsByJobId`
- MODULE_DECLARES → `GetSalesJobWithPotintialsByJobId`
- MODULE_DECLARES → `GetSalesJobWithPotintialsAndStageByJobId`
- MODULE_DECLARES → `GetSalesJobWithOffresByJobId`
- MODULE_DECLARES → `GetSalesJobWithOrderssByJobId`
- MODULE_DECLARES → `GetJobAccountListByBranch`
- MODULE_DECLARES → `GetArchivedJobAccountListByBranch`
- MODULE_DECLARES → `IsUserAllowedToDeliver`
- MODULE_DECLARES → `CreateSalesJob`
- MODULE_DECLARES → `UpdateSalesJob`
- MODULE_DECLARES → `UpdateSalesJobStage`
- MODULE_DECLARES → `DeleteSalesJob`
- MODULE_DECLARES → `UnDeleteSalesJob`
- MODULE_DECLARES → `UltemateDeleteSalesJob`
- MODULE_DECLARES → `ConvertSalesJobFromPotentialToOffer`
- MODULE_DECLARES → `ConvertSalesJobbackToLead`
- MODULE_DECLARES → `ConvertSalesJobbackToInquiry`
- MODULE_DECLARES → `ConvertSalesJobbackToOffer`
- MODULE_DECLARES → `RegretSalesJob`
- MODULE_DECLARES → `CancelSalesJob`
- MODULE_DECLARES → `RegretOfferedJob`
- MODULE_DECLARES → `CancelOfferedJob`
- MODULE_DECLARES → `LossOfferedJob`
- MODULE_DECLARES → `CancelOrderedJob`
- MODULE_DECLARES → `RejectOrderedJob`
- MODULE_DECLARES → `UnRegretNewSalesJob`
- MODULE_DECLARES → `UnCancelNewSalesJob`
- MODULE_DECLARES → `UnRegretOfferedJob`
- MODULE_DECLARES → `UnCancelOfferedJob`
- MODULE_DECLARES → `UnLossOfferedJob`
- MODULE_DECLARES → `UnCancelOrderedJob`
- MODULE_DECLARES → `UnRejectOrderedJob`
- MODULE_DECLARES → `UnDeliverJob`
- IMPORTS → `BaseController`
- IMPORTS → `LookUpImportModel`
- IMPORTS → `Import`
- IMPORTS → `SalesJobBindingModel`
- IMPORTS → `CreateSalesJob`
- IMPORTS → `UpdateSalesJob`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `Delete`
- IMPORTS → `GetJobById`
- IMPORTS → `DeleteDto`
- IMPORTS → `RegretDetailBindingModel`
- IMPORTS → `SalesPotentialRegretDetail`
- IMPORTS → `CancelDetailBindingModel`
- IMPORTS → `SalesPotentialCancelDetail`
- IMPORTS → `SalesOfferRegretDetail`
- IMPORTS → `SalesOfferCancelDetail`
- IMPORTS → `LossDetailBindingModel`
- IMPORTS → `SalesOfferLossDetail`
- IMPORTS → `SalesOrderCancelDetail`
- IMPORTS → `RejectDetailBindingModel`
- IMPORTS → `SalesOrderRejectDetail`
- IMPORTS → `SalesOfferBindingModel`

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