-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk upload - Transfer staff record #6413
Bulk upload - Transfer staff record #6413
Conversation
column: 'UNIQUEWORKERID', | ||
error: | ||
'There are more than one worker with this UNIQUEWORKERID moving into the new workplace given in TRANSFERSTAFFRECORD.', | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quite a bit of duplication with these errors, I think we've already got a couple of functions which generate errors similar to this in one of the other validation files, could see if those could be reused and if it's hassle just make a function for it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I know there's been talk of it being hard to find all the BU validation error/warning messages, it might be nice to have an object at the top of the file with the different error messages and then in the code it would just be something along the lines of addError(JSONWorker, errors.sameRefsMovingToWorkplace)
…EW worker and TRANSFER worker
…alidateMainJobRole
332d7f6
to
a43e4e6
Compare
…oth CHGUNIQUEWRKID and TRANSFERSTAFFRECORD
… and move staff at same time
…sting ref in workplace
…ce with worker with same ref, even if the worker's ID is being changed
…g workerEntity not found in establishment
…rking as sort takes a function with two params for comparison
…d-and-staff-transfer Fix: Allow change id and staff transfer
Work done
Tests
Does this PR include tests for the changes introduced?