From 31751808fa4a97f97157561bc36ec1fc43c13a09 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 10 Apr 2013 13:45:18 -0400 Subject: [PATCH] Bug 10027: include fine details when printing a fine Previously printing a fine invoice would result in a page with both the single item charge and the total outstanding amount. Right now only the total outstanding is printed. Test Plan: 1) Print a fine, note the fine doesn't show, only the total 2) Apply patch 3) Print a fine, not the fine does show Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton (cherry picked from commit 2fa06f48d957f7ea39286a52513a580e2ed5b13e) Signed-off-by: Tomas Cohen Arazi --- members/printinvoice.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/members/printinvoice.pl b/members/printinvoice.pl index 3e04fccd44..9e69fb7146 100755 --- a/members/printinvoice.pl +++ b/members/printinvoice.pl @@ -47,7 +47,6 @@ my ($template, $loggedinuser, $cookie) my $borrowernumber=$input->param('borrowernumber'); my $action = $input->param('action') || ''; -my $accountno = $input->param('accountno'); my $accountlines_id = $input->param('accountlines_id'); #get borrower details @@ -74,7 +73,7 @@ my @accountrows; # this is for the tmpl-loop my $toggle; for (my $i=0;$i<$numaccts;$i++){ - next if ($accts->[$i]{'accountno'} ne $accountno); + next if ($accts->[$i]{'accountlines_id'} ne $accountlines_id ); if($i%2){ $toggle = 0; } else { -- 2.39.5