From: Moritz Bunkus Date: Thu, 11 Nov 2010 15:52:40 +0000 (+0100) Subject: In acc_trans Steuerschlüssel eintragen, nicht ID aus taxkeys X-Git-Tag: release-2.6.3~61^2~7^2~1^2~2^2~63 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9008f9b69842abcd0928955ff5ed0b2d45e75f68;p=kivitendo-erp.git In acc_trans Steuerschlüssel eintragen, nicht ID aus taxkeys --- diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index c6ed109a5..622f9db99 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -114,7 +114,7 @@ sub _calculate_item { $self->netamount($self->netamount + $sellprice * $item->qty / $item->price_factor); my $chart = $item->part->get_chart(type => $data->{is_sales} ? 'income' : 'expense', taxzone => $self->taxzone_id); - $data->{amounts}->{ $chart->id } ||= { taxkey => $taxkey->id, amount => 0 }; + $data->{amounts}->{ $chart->id } ||= { taxkey => $taxkey->taxkey_id, amount => 0 }; $data->{amounts}->{ $chart->id }->{amount} += $linetotal; push @{ $data->{assembly_items} }, [];