https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40445
--- Comment #125 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 193138 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193138&action=edit Bug 40445: (follow-up) Update tests for zero amount cashups The previous commit changed add_cashup() to allow amount=0 (for non-cash transaction scenarios like Card-only payments), but the tests still expected amount=0 to be rejected. This patch updates the test expectations: 1. Changed the 'invalid_amount' subtest to accept zero amounts as valid instead of expecting an exception 2. Added verification that zero amounts are stored correctly 3. Updated test plan count from 4 to 6 tests (added zero amount verification test) 4. Updated test description and comments to reflect the new behavior The zero amount scenario is now valid for cashups where there are only non-cash transactions (Card, Bank Transfer, etc.) and no physical cash to count or remove from the register. 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/
