]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Helper/PriceTaxCalculator.pm
Falsches Konto mit Steuerbetrag bebucht
[mfinanz.git] / SL / DB / Helper / PriceTaxCalculator.pm
index 6a334354822131855044dd102653237b36511234..1184b6c6b7bdb318aa59ff3dd8ff6ae39657d86c 100644 (file)
@@ -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);