Skip to content
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

Fix payroll currency bug #7979

Open
wants to merge 6 commits into
base: refactor-payroll-management
Choose a base branch
from

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Jan 20, 2025

This PR fixes the payroll configuration currency bug reported in #7966. It does so be completely removing the currency selection (see discussions in #7966 and #4956 (comment)). Some small touches include making the translation and function keys all English values.

Routing Improvements

I've improved the ui-routing of the multiple_payroll module so that only minimal information is passed into the config modal and the both the parent and modal controllers are less reliant on parsing the vm.latestViewValues. There is still some work to be done in this area to completely eliminate this dependency in the multiple_payroll controller, but the configuration modal is now state agnostic.

UI Improvements

I've added additional contextual information to the ConfigPaymentModal for the user to orient them about which employee is being configured. In particular, the employee name, grade, and number of dependents are all prominently displayed. See below:

image

Closes #7966.

Replaces the `date_embauche` with `hiring_date` for better English
consistency.

Closes Third-Culture-Software#7821.
Uses the employee's UUID to filter the employee registry from the
multiple payroll registry, rather than the human readable reference.
Improves the "putOnWaitingList" modal by using the modal itself to send
the HTTP request for the confirmation.  This allows the parent
controller to have a more standard flow.

Useless code was also removed, in addition to improving the variable
naming to better English names.
Complete rewrite of the multiple_payroll payment configuration modal to
be less brittle and provide a better user experience.

I've completely removed the option for the user to set the currency
since no production sites were using it in practice, and it had some
serious bugs.  This reduces the number of imports into the modal and
removes the need to do any currency conversion.

Additionally, I've provided additionally context in the modal about the
employee, their grade, function, number of dependents, etc., to give the
user all the context needed for configuration of the employee.

Closes Third-Culture-Software#7966.
Improves the UI of the config modal with units for the different
days/people presented to the user.
I am not sure when we added the canise-lite to the repository, but I
cannot find where it is used.  Removing for that reason.
@jniles jniles marked this pull request as ready for review January 22, 2025 16:03
@jniles jniles requested a review from jmcameron January 22, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant