Bug 21879: Code cleaning in printinvoice.pl
Coming from
commit 51aa6db46c
Bug 12001: Move GetMemberAccountRecords to the Koha namespace
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
e41f2c9824
commit
f9f7b5cc80
|
|
@ -74,18 +74,6 @@ if ( $accountline->{'amountoutstanding'} <= 0 ) {
|
|||
$accountline->{'amountoutstandingcredit'} = 1;
|
||||
}
|
||||
|
||||
my %row = (
|
||||
'date' => dt_from_string( $accountline->{'date'} ),
|
||||
'amountcredit' => $accountline->{'amountcredit'},
|
||||
'amountoutstandingcredit' => $accountline->{'amountoutstandingcredit'},
|
||||
'description' => $accountline->{'description'},
|
||||
'amount' => sprintf( "%.2f", $accountline->{'amount'} ),
|
||||
'amountoutstanding' =>
|
||||
sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
|
||||
'debit_type_code' => $accountline->{'debit_type_code'},
|
||||
'note' => $accountline->{'note'},
|
||||
);
|
||||
|
||||
my @account_offsets = Koha::Account::Offsets->search( { debit_id => $accountline_object->id } );
|
||||
|
||||
my $letter = C4::Letters::getletter( 'circulation', 'ACCOUNT_DEBIT', C4::Context::mybranch, 'print', $patron->lang );
|
||||
|
|
|
|||
Loading…
Reference in New Issue