Lines 1467-1472
sub _set_found_trigger {
Link Here
|
1467 |
my $patron = $lost_charge->patron; |
1467 |
my $patron = $lost_charge->patron; |
1468 |
if ( $patron ) { |
1468 |
if ( $patron ) { |
1469 |
|
1469 |
|
|
|
1470 |
my $no_refund_if_lost_fee_paid_age = C4::Context->preference('NoRefundOnLostFinesPaidAge'); |
1471 |
if ($no_refund_if_lost_fee_paid_age) { |
1472 |
my $lost_fee_payment = $lost_charge->debit_offsets( { type => 'APPLY' } )->single; |
1473 |
if ($lost_fee_payment) { |
1474 |
my $today = dt_from_string(); |
1475 |
my $payment_age_in_days = |
1476 |
dt_from_string( $lost_fee_payment->created_on )->delta_days($today)->in_units('days'); |
1477 |
return $self if $payment_age_in_days > $no_refund_if_lost_fee_paid_age; |
1478 |
} |
1479 |
} |
1480 |
|
1470 |
my $account = $patron->account; |
1481 |
my $account = $patron->account; |
1471 |
|
1482 |
|
1472 |
# Credit outstanding amount |
1483 |
# Credit outstanding amount |
1473 |
- |
|
|