X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/9566fde47ff880d29c7ecce635bd58f330561030..4ee4670cb59cc318fd0d67ac19dd147dd63b87c7:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 2a486c882..d490739f7 100644 --- a/SL/AP.pm +++ b/SL/AP.pm @@ -76,6 +76,9 @@ sub post_transaction { $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 @@ -442,7 +445,7 @@ sub ap_transactions { 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";