Plugin Sample - Assign Branch to staff member
This plugin adds a branch custom field to the staff maintenance form. When creating sales orders or quotes, the branch is set to be that assigned to the current user.
The Jiwa community forums
https://forums.jiwa.com.au/