- firstname => $data->{'firstname'},
- surname => $data->{'surname'},
- bornum => $bornum,
- total => sprintf("%.2f",$total),
- totalcredit => $totalcredit,
- accounts => \@accountrows );
+ finesview => 1,
+ firstname => $data->{'firstname'},
+ surname => $data->{'surname'},
+ othernames => $data->{'othernames'},
+ borrowernumber => $borrowernumber,
+ cardnumber => $data->{'cardnumber'},
+ categorycode => $data->{'categorycode'},
+ category_type => $data->{'category_type'},
+ categoryname => $data->{'description'},
+ address => $data->{'address'},
+ address2 => $data->{'address2'},
+ city => $data->{'city'},
+ state => $data->{'state'},
+ zipcode => $data->{'zipcode'},
+ country => $data->{'country'},
+ phone => $data->{'phone'},
+ email => $data->{'email'},
+ branchcode => $data->{'branchcode'},
+ branchname => GetBranchName($data->{'branchcode'}),
+ total => sprintf("%.2f",$total),
+ totalcredit => $totalcredit,
+ is_child => ($data->{'category_type'} eq 'C'),
+ reverse_col => $reverse_col,
+ accounts => $accts,
+ activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''),
+);