&ReversePayment
&makepartialpayment
&recordpayment_selectaccts
- &WriteOff
+ &WriteOffFee
);
}
=cut
-sub WriteOff {
+sub WriteOffFee {
my ( $borrowernumber, $accountnum, $itemnum, $accounttype, $amount, $branch ) = @_;
my $branch ||= C4::Context->userenv->{branch};
my $manager_id = 0;
my $itemno = $input->param('itemnumber');
my $account_type = $input->param('accounttype');
my $amount = $input->param('amountoutstanding');
- WriteOff( $borrowernumber, $accountno, $itemno, $account_type, $amount, $branch );
+ WriteOffFee( $borrowernumber, $accountno, $itemno, $account_type, $amount, $branch );
}
for (@names) {
my $itemno = $input->param("itemnumber$value");
my $amount = $input->param("amountoutstanding$value");
my $accountno = $input->param("accountno$value");
- WriteOff( $borrowernumber, $accountno, $itemno, $accounttype, $amount, $branch );
+ WriteOffFee( $borrowernumber, $accountno, $itemno, $accounttype, $amount, $branch );
}
}