$sum += $form->parse_amount($self->{"myconfig"},
$form->{"linetotal"}->[$i]);
}
-
+
$form->{"cumulatelinetotal"}[$i] = $form->format_amount($self->{"myconfig"}, $sum, 2);
-
+
my $new_text = $self->parse_block($text, (@indices, $i));
return undef unless (defined($new_text));
$new_contents .= $start_tag . $new_text . $end_tag;
return undef;
}
- my $value = $self->{"form"}->{$var};
+ my $form = $self->{form};
+ $form = $form->{TEMPLATE_ARRAYS} if @indices
+ && ref $form->{TEMPLATE_ARRAYS} eq 'HASH'
+ && ref $form->{TEMPLATE_ARRAYS}->{$var} eq 'ARRAY';
+ my $value = $form->{$var};
for (my $i = 0; $i < scalar(@indices); $i++) {
last unless (ref($value) eq "ARRAY");
$value = $value->[$indices[$i]];
####
##########################################################
-package XMLTemplate;
+package XMLTemplate;
use vars qw(@ISA);