When printing a payment receipt, the payment did not display, only the
total currently owed.
Test Plan:
1) Create a payment for a borrower
2) Print the payment with the "print" button to the right of the payment
3) Note the missing payment line
4) Apply this patch
5) Repeat step 2
6) Note the payment line now displays
Signed-off-by: cedric.vita@dracenie.com <cedric.vita@dracenie.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
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 $data=GetMember('borrowernumber' => $borrowernumber);
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 {