[Koha-bugs] [Bug 27636] Replace Koha::Account::pay with a simpler method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 28 12:26:10 CEST 2021


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

Kyle M Hall <kyle at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #120258|0                           |1
        is obsolete|                            |
 Attachment #120259|0                           |1
        is obsolete|                            |

--- Comment #26 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 120262
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120262&action=edit
Bug 27636: (QA follow-up) Fix tests and validate

This patch fixes the tests for when a negative amount is passed to the
pay method.  Prior to now, a negative amount would have been passed
through and recorded. This was inconsistent with all other accounts
methods and has been deprecated to ensure consistent amounts handling.

This patch also introduces basic validation to prevent negatives being
entered into the UI.

Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list