https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11373

--- Comment #52 from Pierre-Marc Thibault <pierre-marc.thiba...@inlibro.com> ---
Created attachment 79507
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=79507&action=edit
System preference added, dialog removed, disabled input added to show the
change in the form.

This patch removes the dialog because it was redundant with the form. As the
numbers fields are formated when they are changed, it is convenient to
calculate and show the change at the same time. When the change value cannot be
calculated (amount collected < amount paid), its value is brought back to 0.00.
This includes also a new system preference called FineChange which enables or
disables the feature.

Test plan :
- Apply patch.
- Make sure FineChange is at ENABLE in System preferences > Patrons.
- Select a patron with a fine.
- Go to Fines > Pay fines.
- Click the button pay.
- Choose the amount paid equal to the outstanding amount (exemple : 3$).
- Choose the amount collected to be more than the outstanding amount (exemple :
5$)
- Confirm that the change is correct (example : 5$ - 3$ = 2$)
- Click the button confirm.
- Confirm that the payment has been made.
- Make sure FineChange is at DISABLE in System preferences > Patrons.
- Select a patron with a fine and go to Fines > Pay fines.
- Confirm that the input change is gone.
- Choose an amount collected (exemple : 3$).
- Click the button confirm.
- Confirm that the payment has been made.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to