From 50418558d521022a3c23d5edf431b2a41daae0f8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 11 Nov 2010 17:42:21 +0100 Subject: [PATCH] Falsches Konto mit Steuerbetrag bebucht --- SL/DB/Helper/PriceTaxCalculator.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1