https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19382
--- Comment #28 from Kyle M Hall <[email protected]> --- (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. _______________________________________________ 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/
