Added the Requisition Status and Purchase Order Status in master list
This commit is contained in:
parent
fba12f577d
commit
468f50f2da
@ -576,7 +576,9 @@ namespace Marco.Pms.Services.Controllers
|
||||
ProjectManagement, new List<MasterMenuVM>
|
||||
{
|
||||
new MasterMenuVM { Id = 3, Name = "Work Category" },
|
||||
new MasterMenuVM { Id = 8, Name = "Services" }
|
||||
new MasterMenuVM { Id = 8, Name = "Services" },
|
||||
new MasterMenuVM { Id = 12, Name = "Requisition Status" },
|
||||
new MasterMenuVM { Id = 13, Name = "Purchase Order Status" }
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -591,7 +593,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
new MasterMenuVM { Id = 6, Name = "Expense Type" },
|
||||
new MasterMenuVM { Id = 7, Name = "Payment Mode" },
|
||||
new MasterMenuVM { Id = 10, Name = "Payment Adjustment Head" }
|
||||
new MasterMenuVM { Id = 11, Name = "Payment Adjustment Head" }
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@ -997,7 +997,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
}
|
||||
|
||||
[HttpPost("requisition-status/create")]
|
||||
public async Task<IActionResult> CreateRequisitionStatus([FromForm] RequisitionStatusDto model)
|
||||
public async Task<IActionResult> CreateRequisitionStatus([FromBody] RequisitionStatusDto model)
|
||||
{
|
||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||
var response = await _masterService.CreateRequisitionStatusAsync(model, loggedInEmployee, tenantId);
|
||||
@ -1005,7 +1005,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
}
|
||||
|
||||
[HttpPut("requisition-status/edit/{id}")]
|
||||
public async Task<IActionResult> UpdateRequisitionStatus(Guid id, [FromForm] RequisitionStatusDto model)
|
||||
public async Task<IActionResult> UpdateRequisitionStatus(Guid id, [FromBody] RequisitionStatusDto model)
|
||||
{
|
||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||
var response = await _masterService.UpdateRequisitionStatusAsync(id, model, loggedInEmployee, tenantId);
|
||||
@ -1041,7 +1041,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
}
|
||||
|
||||
[HttpPost("purchase-order-status/create")]
|
||||
public async Task<IActionResult> CreatePurchaseOrderStatus([FromForm] PurchaseOrderStatusDto model)
|
||||
public async Task<IActionResult> CreatePurchaseOrderStatus([FromBody] PurchaseOrderStatusDto model)
|
||||
{
|
||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||
var response = await _masterService.CreatePurchaseOrderStatusAsync(model, loggedInEmployee, tenantId);
|
||||
@ -1049,7 +1049,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
}
|
||||
|
||||
[HttpPut("purchase-order-status/edit/{id}")]
|
||||
public async Task<IActionResult> UpdatePurchaseOrderStatus(Guid id, [FromForm] PurchaseOrderStatusDto model)
|
||||
public async Task<IActionResult> UpdatePurchaseOrderStatus(Guid id, [FromBody] PurchaseOrderStatusDto model)
|
||||
{
|
||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||
var response = await _masterService.UpdatePurchaseOrderStatusAsync(id, model, loggedInEmployee, tenantId);
|
||||
|
||||
@ -3579,6 +3579,12 @@ namespace Marco.Pms.Services.Service
|
||||
|
||||
#endregion
|
||||
|
||||
#region =================================================================== Requisition Status APIs ===================================================================
|
||||
#endregion
|
||||
|
||||
#region =================================================================== Requisition Status APIs ===================================================================
|
||||
#endregion
|
||||
|
||||
#region =================================================================== Helper Function ===================================================================
|
||||
private static object ExceptionMapper(Exception ex)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user