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

--- Comment #119 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 193132
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193132&action=edit
Bug 40445: (follow-up) Update unit tests for negative cashup amounts

Updated tests to reflect that negative amounts are now valid:

1. start_cashup_parameter_validation - Changed expected amount test
   from >= 0 to != 0, since amounts can now be negative

2. add_cashup - Updated invalid_amount subtest:
   - Removed test expecting negative amounts to throw exception
   - Added test confirming negative amounts are now accepted
   - Verifies negative amount is stored correctly
   - Kept tests for zero, non-numeric, and empty amounts

All other tests remain unchanged as they don't specifically test
for positive-only validation.

To test:
prove t/db_dependent/Koha/Cash/Register.t

Sponsored-by: OpenFifth <https://openfifth.co.uk/>
Signed-off-by: Jackie Usher <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://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