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 <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
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
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 {