Renamed roles and trans keys "Limited"->"Restricted" "Full" -> ""

This commit is contained in:
2021-07-12 17:19:09 +00:00
parent cd1d8ce802
commit 1994691749
5 changed files with 27 additions and 28 deletions

View File

@@ -420,21 +420,6 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: CURRENTLY DOING:
todo 2: Implement "Show All" feature for workorder lists as follows:
Already implemented in admin-user but now need to replicate to personal user areas:
Schedule menu
Dashboard menu
Copy the code from the admin-user menu but change the if statement to use the store.state.isScheduleableUser flag set on login
To show
WorkORderItemScheduledUserDataList
WorkOrderItemLaborDataList
todo 1: "DispatchFull" and "DispatchLimited" roles MUST be renamed to "ServiceFull" and "ServiceLimited" to match other roles and intent todo 1: "DispatchFull" and "DispatchLimited" roles MUST be renamed to "ServiceFull" and "ServiceLimited" to match other roles and intent
dispatch is a subset of a service manager job dispatch is a subset of a service manager job
@@ -1226,3 +1211,12 @@ BUILD 115
- Project edit form "Work orders" menu item implemented to show all WorkOrders list filtered by project (new feature) - Project edit form "Work orders" menu item implemented to show all WorkOrders list filtered by project (new feature)
- Part edit form "Work orders" menu item implemented to show all WorkOrderItemParts list filtered by part (new feature) - Part edit form "Work orders" menu item implemented to show all WorkOrderItemParts list filtered by part (new feature)
- User edit form "Scheduled Users" and "Labors" menu items implemented to show all workorderitem scheduled user and workorderitemlabor lists filtered by User (new feature) - User edit form "Scheduled Users" and "Labors" menu items implemented to show all workorderitem scheduled user and workorderitemlabor lists filtered by User (new feature)
- Dashboard form "Scheduled Users" and "Labors" menu items implemented to show all workorderitem scheduled user and workorderitemlabor lists filtered by current User (new feature)
- Translation roles: changed "Limited" to "Restricted" to more properly reflect what it means and also in all translations which translate more accurately this way
- Transtlation roles: removed "- full" from full rights roles
i.e. "Inventory - Full" is now just "Inventory"
- Role object and Translation: renamed "Dispatch" roles to "Service" roles as "Dispatch" is a sub-set of all Service manager tasks and roles
i.e. "Dispatch", "Dispatch - restricted" now "Service", "Service - restricted"
this also ties in more tightly with the user interface menu options making it clearer where it applies

View File

@@ -11,10 +11,10 @@ export default {
BizAdminLimited: 1, BizAdminLimited: 1,
///<summary>BizAdminFull</summary> ///<summary>BizAdminFull</summary>
BizAdminFull: 2, BizAdminFull: 2,
///<summary>DispatchLimited</summary> ///<summary>ServiceLimited</summary>
DispatchLimited: 4, ServiceLimited: 4,
///<summary>DispatchFull</summary> ///<summary>ServiceFull</summary>
DispatchFull: 8, ServiceFull: 8,
///<summary>InventoryLimited</summary> ///<summary>InventoryLimited</summary>
InventoryLimited: 16, InventoryLimited: 16,
///<summary>InventoryFull</summary> ///<summary>InventoryFull</summary>

View File

@@ -299,7 +299,7 @@ export default {
ayaType: window.$gz.type.Review, ayaType: window.$gz.type.Review,
currentUserIsASupervisor: window.$gz.role.hasRole([ currentUserIsASupervisor: window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull, window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull, window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull, window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull, window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull window.$gz.role.AUTHORIZATION_ROLES.AccountingFull
@@ -353,14 +353,14 @@ export default {
//mirrored from ReviewBiz.cs validation rule at server //mirrored from ReviewBiz.cs validation rule at server
/* /*
CurrentUserRoles.HasFlag(AuthorizationRoles.BizAdminFull) || CurrentUserRoles.HasFlag(AuthorizationRoles.BizAdminFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.DispatchFull) || CurrentUserRoles.HasFlag(AuthorizationRoles.ServiceFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.InventoryFull) || CurrentUserRoles.HasFlag(AuthorizationRoles.InventoryFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.SalesFull) || CurrentUserRoles.HasFlag(AuthorizationRoles.SalesFull) ||
CurrentUserRoles.HasFlag(AuthorizationRoles.AccountingFull); CurrentUserRoles.HasFlag(AuthorizationRoles.AccountingFull);
*/ */
return window.$gz.role.hasRole([ return window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull, window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.DispatchFull, window.$gz.role.AUTHORIZATION_ROLES.ServiceFull,
window.$gz.role.AUTHORIZATION_ROLES.InventoryFull, window.$gz.role.AUTHORIZATION_ROLES.InventoryFull,
window.$gz.role.AUTHORIZATION_ROLES.SalesFull, window.$gz.role.AUTHORIZATION_ROLES.SalesFull,
window.$gz.role.AUTHORIZATION_ROLES.AccountingFull window.$gz.role.AUTHORIZATION_ROLES.AccountingFull

View File

@@ -18,4 +18,9 @@ export default {
}); });
} }
}; };
/*
TODO: copy dashboard menu links to own workorders for here
*/
</script> </script>

View File

@@ -286,14 +286,14 @@ export default {
p: "CustomerLimited" p: "CustomerLimited"
}, },
{ {
name: "Dispatcher", name: "Service",
l: "DispatchFull", l: "ServiceFull",
p: "DispatchFull" p: "ServiceFull"
}, },
{ {
name: "Dispatcher - limited", name: "Service - limited",
l: "DispatchLimited", l: "ServiceLimited",
p: "DispatchLimited" p: "ServiceLimited"
}, },
{ {
name: "Head office", name: "Head office",