]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/gl.pl
Deb-/Kred-/Dialogbuchungen - get_active_taxes_for_chart mit tax_id
[kivitendo-erp.git] / bin / mozilla / gl.pl
index 1c29b832e57fcd9b0d5242449f4bae3189bf4464..fe621122b72051b40b920f34e9022daf809921e5 100644 (file)
@@ -826,9 +826,13 @@ sub display_rows {
     $accno_id    = $chart->{id};
     my ($first_taxchart, $default_taxchart, $taxchart_to_use);
 
+    my $used_tax_id;
+    if ( $form->{"taxchart_$i"} ) {
+      ($used_tax_id) = split(/--/, $form->{"taxchart_$i"});
+    }
 
     my $taxdate = $deliverydate ? $deliverydate : $transdate;
-    foreach my $item ( GL->get_active_taxes_for_chart($accno_id, $taxdate) ) {
+    foreach my $item ( GL->get_active_taxes_for_chart($accno_id, $taxdate, $used_tax_id) ) {
       my $key             = $item->id . "--" . $item->rate;
       $first_taxchart   //= $item;
       $default_taxchart   = $item if $item->{is_default};