+ if ( C4::Context->preference("FinesLog") ) {
+ logaction("FINES", 'MODIFY', $borrowernumber, Dumper({
+ action => 'fee_payment',
+ borrowernumber => $borrowernumber,
+ old_amountoutstanding => $data->{'amountoutstanding'},
+ new_amountoutstanding => 0,
+ amount_paid => $data->{'amountoutstanding'},
+ accountlines_id => $data->{'accountlines_id'},
+ accountno => $data->{'accountno'},
+ manager_id => $manager_id,
+ }));
+
+
+ logaction("FINES", 'CREATE',$borrowernumber,Dumper({
+ action => 'create_payment',
+ borrowernumber => $borrowernumber,
+ accountno => $nextaccntno,
+ amount => $payment,
+ amountoutstanding => 0,,
+ accounttype => 'Pay',
+ accountlines_paid => [$data->{'accountlines_id'}],
+ manager_id => $manager_id,
+ }));
+ }
+
+