From: Moritz Bunkus Date: Thu, 11 Nov 2010 16:42:21 +0000 (+0100) Subject: Falsches Konto mit Steuerbetrag bebucht X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~55 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=50418558d521022a3c23d5edf431b2a41daae0f8;p=kivitendo-erp.git Falsches Konto mit Steuerbetrag bebucht --- diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index 6a3343548..1184b6c6b 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -108,8 +108,8 @@ sub _calculate_item { $tax_amount = $linetotal * $tax_rate; } - $data->{taxes}->{ $taxkey->chart_id } ||= 0; - $data->{taxes}->{ $taxkey->chart_id } += $tax_amount; + $data->{taxes}->{ $taxkey->tax->chart_id } ||= 0; + $data->{taxes}->{ $taxkey->tax->chart_id } += $tax_amount; $self->netamount($self->netamount + $sellprice * $item->qty / $item->price_factor);