[Koha-bugs] [Bug 19382] Add ability to block guarantees based on fees owed by guarantor and other guarantees

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 1 14:36:50 CEST 2020


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

--- Comment #28 from Kyle M Hall <kyle at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #27)
> With only the 2 first patches applied:
> 
> 153     is( $child_1->relationships_debt({ only_this_guarantor => 0,
> include_guarantors => 0, include_this_patron => 0 }), 10, 'Family debt is
> correct' );

In this case, we are not specifying only_this_guarantor, and we are specifying
not to include this patron, and not to include the guarantors themselves, so
the code will total the charges from the guarantors other guarantees. Since the
sibling owes 10, the returned value is 10.

> 157     is( $child_1->relationships_debt({ only_this_guarantor => 1,
> include_guarantors => 0, include_this_patron => 0 }), 0, 'Family debt is
> correct' );

This one is much simpler, since only_this_guarantor is specified, but the
patron is not a guarantor, there are no guarantors to check. No guarantors
means no guarantees so the total returned is 0.

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


More information about the Koha-bugs mailing list