Auftrags-Controller: Steuer inbegriffen nur im Verkauf vorauswählen.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 12 Oct 2015 12:30:41 +0000 (14:30 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 16 Nov 2015 15:15:58 +0000 (16:15 +0100)
SL/Controller/Order.pm

index 1933827..59337da 100644 (file)
@@ -259,9 +259,11 @@ sub action_customer_vendor_changed {
 
   $self->order->taxzone_id($self->order->$cv_method->taxzone_id);
 
-  $self->order->taxincluded(defined($self->order->$cv_method->taxincluded_checked)
-                            ? $self->order->$cv_method->taxincluded_checked
-                            : $::myconfig{taxincluded_checked});
+  if ($self->order->is_sales) {
+    $self->order->taxincluded(defined($self->order->$cv_method->taxincluded_checked)
+                              ? $self->order->$cv_method->taxincluded_checked
+                              : $::myconfig{taxincluded_checked});
+  }
 
   $self->_recalc();