X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FOE.pm;h=8e0cfb955dba14fb2ca6817048ddf4313132f65c;hb=6bad0469c4f5bb92830f77cf7675e76730e79ae4;hp=5f1c6ce45d8f5e869a239f448210651f5fff6c31;hpb=92b2f11d767aefa46c58c1b3c63ac73c3f86421b;p=kivitendo-erp.git diff --git a/SL/OE.pm b/SL/OE.pm index 5f1c6ce45..8e0cfb955 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -870,10 +870,6 @@ sub retrieve { Common::webdav_folder($form) if ($main::webdav); - # get tax zones - $query = qq|SELECT id, description FROM tax_zones|; - $form->{TAXZONE} = selectall_hashref_query($form, $dbh, $query); - my $rc = $dbh->commit; $dbh->disconnect; @@ -1141,12 +1137,6 @@ sub order_details { $form->format_amount($myconfig, $form->{"${item}_rate"} * 100)); push(@{ $form->{taxnumber} }, $form->{"${item}_taxnumber"}); } - if($form->{taxincluded}) { - $form->{subtotal} = $form->format_amount($myconfig, $form->{total} - $tax, 2); - } - else { - $form->{subtotal} = $form->format_amount($myconfig, $form->{total}, 2); - } $yesdiscount = $form->{nodiscount_total} - $nodiscount; $form->{nodiscount_subtotal} = $form->format_amount($myconfig, $form->{nodiscount_total}, 2); $form->{discount_total} = $form->format_amount($myconfig, $form->{discount_total}, 2);