Lines 80-86
sub new {
Link Here
|
80 |
my $fines_amount = $flags->{CHARGES}->{amount}; #TODO Replace with $patron->account->non_issues_charges |
80 |
my $fines_amount = $flags->{CHARGES}->{amount}; #TODO Replace with $patron->account->non_issues_charges |
81 |
$fines_amount = ($fines_amount and $fines_amount > 0) ? $fines_amount : 0; |
81 |
$fines_amount = ($fines_amount and $fines_amount > 0) ? $fines_amount : 0; |
82 |
if ( C4::Context->preference('NoIssuesChargeGuarantorsWithGuarantees') ) { |
82 |
if ( C4::Context->preference('NoIssuesChargeGuarantorsWithGuarantees') ) { |
83 |
$fines_amount += $patron->relationships_debt({ include_guarantors => 1, only_this_guarantor => 0, include_this_patron => 1 }); |
83 |
$fines_amount += $patron->relationships_debt({ include_guarantors => 1, only_this_guarantor => 0, include_this_patron => 0 }); |
84 |
} else { |
84 |
} else { |
85 |
my $guarantees_fines_amount = $flags->{CHARGES_GUARANTEES} ? $flags->{CHARGES_GUARANTEES}->{amount} : 0; #TODO: Replace with $patron->relationships_debt |
85 |
my $guarantees_fines_amount = $flags->{CHARGES_GUARANTEES} ? $flags->{CHARGES_GUARANTEES}->{amount} : 0; #TODO: Replace with $patron->relationships_debt |
86 |
$fines_amount += $guarantees_fines_amount; |
86 |
$fines_amount += $guarantees_fines_amount; |
87 |
- |
|
|