Lines 634-639
sub relationships_debt {
Link Here
|
634 |
my $non_issues_charges = 0; |
634 |
my $non_issues_charges = 0; |
635 |
my $seen = $include_this_patron ? {} : { $self->id => 1 }; # For tracking members already added to the total |
635 |
my $seen = $include_this_patron ? {} : { $self->id => 1 }; # For tracking members already added to the total |
636 |
foreach my $guarantor (@guarantors) { |
636 |
foreach my $guarantor (@guarantors) { |
|
|
637 |
if ( !$only_this_guarantor && $seen->{ $guarantor->id } ) { |
638 |
next; |
639 |
} |
637 |
$non_issues_charges += $guarantor->account->non_issues_charges |
640 |
$non_issues_charges += $guarantor->account->non_issues_charges |
638 |
if $include_guarantors && !$seen->{ $guarantor->id }; |
641 |
if $include_guarantors && !$seen->{ $guarantor->id }; |
639 |
|
642 |
|
640 |
- |
|
|