$form->{exchangerate} * -1,
2);
$amount += ($form->{"amount_$i"} * -1);
+
+ # parse tax_$i for later
+ $form->{"tax_$i"} = $form->parse_amount($myconfig, $form->{"tax_$i"}) * -1;
}
# this is for ap
push @a, "employee" if $self->{l_employee};
my $sortorder = join ', ', $form->sort_columns(@a);
$sortorder = $form->{sort} if $form->{sort};
-
+
$query .= "WHERE $where
ORDER by $sortorder";