Before this commit, the values dict given to the template of '/my/invoices' is built in the main method of the '/my/invoices' route. This commit moves the building of the values dict in a separate method to easily use in another route/method. task-2648955 Closes #82379