X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/4c996a3d4df205f272f6c6cb86c1cdfec1ade49d..4ee4670cb59cc318fd0d67ac19dd147dd63b87c7:/SL/AP.pm diff --git a/SL/AP.pm b/SL/AP.pm index 8be0c8f81..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 @@ -142,14 +145,7 @@ sub post_transaction { # amount for total AP $form->{payables} = $form->{invtotal}; - print(STDERR $form->{payables}, - " Payables\n", - $form->{invtotal}, - " Invtotal\n", - $form->{netamount}, - " Netamount\n", - $form->{total_tax}, - " Total_Tax\n\n"); + my ($query, $sth); # if we have an id delete old records @@ -449,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";