Die Einstellung: ""Steuer im Preis inbegriffen" vorwählen" gefixt
authorThomas Heck <theck@linet-services.de>
Mon, 22 Jul 2013 16:23:30 +0000 (18:23 +0200)
committerThomas Heck <theck@linet-services.de>
Mon, 22 Jul 2013 16:23:30 +0000 (18:23 +0200)
fixt #2336

SL/Controller/CustomerVendor.pm
templates/webpages/customer_vendor/tabs/billing.html

index 23c9036..b64c121 100644 (file)
@@ -577,6 +577,11 @@ sub _instantiate_args {
   }
   $self->{cv}->assign_attributes(%{$::form->{cv}});
 
+  if ( $self->is_customer() && $::form->{cv}->{taxincluded_checked} eq '' ) {
+    $self->{cv}->taxincluded_checked(undef);
+  }
+
+
   foreach my $cvar (@{$self->{cv}->cvars_by_config()}) {
     my $value = $::form->{cv_cvars}->{$cvar->config->name};
 
index ace2bd5..2e9ac4c 100644 (file)
         </td>
       [%- END %]
 
-      <td>[% 'taxincluded checked' | $T8 %]</td>
+      [% IF ( SELF.is_customer() ) %]
+        <td>[% 'taxincluded checked' | $T8 %]</td>
 
-      <td>
-        [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
-      </td>
+        <td>
+          [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
+        </td>
+      [% END %]
 
     </tr>
   </table>