-# add the row parity
-my $num = 0;
-foreach my $row (@$accts) {
- $row->{'even'} = 1 if $num % 2 == 0;
- $row->{'odd'} = 1 if $num % 2 == 1;
- $num++;
-}
-
-$template->param (
- ACCOUNT_LINES => $accts,
- total => sprintf( "%.2f", $total ),
- accountview => 1
+$template->param(
+ ACCOUNT_LINES => \@accountlines,
+ total => sprintf( "%.2f", $total ), # FIXME Use TT plugin Price
+ accountview => 1,
+ message => scalar $query->param('message') || q{},
+ message_value => scalar $query->param('message_value') || q{},
+ payment => scalar $query->param('payment') || q{},
+ payment_error => scalar $query->param('payment-error') || q{},