Showing posts with label projects. Show all posts
Showing posts with label projects. Show all posts

Tuesday, 15 March 2016

Dynamics AX 7– (Project) Resource management changes

This was an interesting find under the projects module. Now you can put your hours against a Resource rather than a Worker. A resource can be a machine or facility or a worker. I feel this was lacking in prior versions and is a great addition. In prior version you were able to schedule against a resource but the time booked was always against the worker.
What this means is now all the Worker references have changed to Resource
1. Hours forecast and actuals are against a Resource
2016-01-13_1512
2. Project/Worker validaiton and Category/Worker validation.
2016-01-11_1558
2016-01-11_1557
If you look at the details of the resrouces you will see that it is linked to a worker but it can now be linked to Vendor/Machine/Tool/Location/Facitlity.
2016-01-13_1533
From a code perspective if you are upgrading it is fairly straight to port over your code. You should change from Worker to Resource.
Fromif (! ProjValEmplProjSetup::checkWorkerProj(this.Worker, this.ProjId))
Toif (! ProjValEmplProjSetup::checkResourceProj(ResourceFacade::findOrCreateByWorker(this.Worker), this.ProjId))

Fromif (! ProjValEmplCategorySetUp::checkWorkerCategory(this.Worker, this.CategoryId))
To
if (! ProjValEmplCategorySetUp::checkResourceCategory(ResourceFacade::findOrCreateByWorker(this.Worker), this.CategoryId))

Dynamics AX 7– (Project) Resource management changes

This was an interesting find under the projects module. Now you can put your hours against a Resource rather than a Worker. A resource can be a machine or facility or a worker. I feel this was lacking in prior versions and is a great addition. In prior version you were able to schedule against a resource but the time booked was always against the worker.
What this means is now all the Worker references have changed to Resource
1. Hours forecast and actuals are against a Resource
2016-01-13_1512
2. Project/Worker validaiton and Category/Worker validation.
2016-01-11_1558
2016-01-11_1557
If you look at the details of the resrouces you will see that it is linked to a worker but it can now be linked to Vendor/Machine/Tool/Location/Facitlity.
2016-01-13_1533
From a code perspective if you are upgrading it is fairly straight to port over your code. You should change from Worker to Resource.
Fromif (! ProjValEmplProjSetup::checkWorkerProj(this.Worker, this.ProjId))
Toif (! ProjValEmplProjSetup::checkResourceProj(ResourceFacade::findOrCreateByWorker(this.Worker), this.ProjId))

Fromif (! ProjValEmplCategorySetUp::checkWorkerCategory(this.Worker, this.CategoryId))
To
if (! ProjValEmplCategorySetUp::checkResourceCategory(ResourceFacade::findOrCreateByWorker(this.Worker), this.CategoryId))