This commit is contained in:
@@ -15,7 +15,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
[ApiController]
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/workorder")]
|
||||
[Route("api/v{version:apiVersion}/quote")]
|
||||
[Produces("application/json")]
|
||||
[Authorize]
|
||||
public class QuoteController : ControllerBase
|
||||
|
||||
@@ -553,6 +553,7 @@ namespace AyaNova.Biz
|
||||
ReadFullRecord = AuthorizationRoles.BizAdminRestricted | AuthorizationRoles.ServiceRestricted | AuthorizationRoles.SalesRestricted,
|
||||
Select = AuthorizationRoles.All
|
||||
};
|
||||
|
||||
roles.Add(AyaType.Quote, quoteBizRoleSet);
|
||||
roles.Add(AyaType.QuoteItem, quoteBizRoleSet);
|
||||
roles.Add(AyaType.QuoteItemExpense, quoteBizRoleSet);
|
||||
@@ -564,6 +565,16 @@ namespace AyaNova.Biz
|
||||
roles.Add(AyaType.QuoteItemTravel, quoteBizRoleSet);
|
||||
roles.Add(AyaType.QuoteItemUnit, quoteBizRoleSet);
|
||||
roles.Add(AyaType.QuoteItemOutsideService, quoteBizRoleSet);
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
//QUOTESTATUS
|
||||
//
|
||||
roles.Add(AyaType.QuoteStatus, new BizRoleSet()
|
||||
{
|
||||
Change = AuthorizationRoles.BizAdmin | AuthorizationRoles.Sales | AuthorizationRoles.Service,
|
||||
ReadFullRecord = AuthorizationRoles.All,
|
||||
Select = AuthorizationRoles.All//sub restricted by client and biz rules as status has it's own role settings so just keep it open for everyone to potentially access
|
||||
});
|
||||
//---
|
||||
|
||||
|
||||
|
||||
@@ -1354,7 +1354,7 @@ namespace AyaNova.Biz
|
||||
l.Add(new FormField { TKey = "LineTotal", FieldKey = "OutsideServiceLineTotalViz", TKeySection = "WorkOrderItemOutsideServiceList" });
|
||||
|
||||
|
||||
_formFields.Add(AyaType.WorkOrder.ToString(), l);
|
||||
_formFields.Add(AyaType.Quote.ToString(), l);
|
||||
|
||||
}
|
||||
#endregion quote
|
||||
|
||||
Reference in New Issue
Block a user