|
@andrew-dzak : Just had a look at this PR again . Given that we already have an API for assigning staff at https://demo.openmf.org/api-docs/apiLive.htm#groups_assignStaff , would it be a good idea to add this functionality to the same API (am a bit wary of introducing another API with very similar functionality). We could introduce a query parameter to force all clients (and their loans and savings) to inherit the loan officer from the group.
To force this API to allow updating an existing Group officer, we could add another parameter, say "updateCurrentStaff" which defaults to false. Or, if you prefer, we could simply call https://demo.openmf.org/api-docs/apiLive.htm#groups_unassignStaff followed by https://demo.openmf.org/api-docs/apiLive.htm#groups_assignStaff. If you are looking for both operations to be atomic, we could consume them in the UI using the batch API
|