Bug 23049: Update existing code to use debit_type
[koha.git] / members / printinvoice.pl
index 98ff1c5..ce16cea 100755 (executable)
@@ -82,8 +82,8 @@ my %row = (
     'amount'                  => sprintf( "%.2f", $accountline->{'amount'} ),
     'amountoutstanding' =>
       sprintf( "%.2f", $accountline->{'amountoutstanding'} ),
-    accounttype => $accountline->{accounttype},
-    'note'      => $accountline->{'note'},
+    'debit_type_code' => $accountline->{'debit_type_code'},
+    'note'            => $accountline->{'note'},
 );
 
 my @account_offsets = Koha::Account::Offsets->search( { debit_id => $accountline_object->id } );