From: Thomas Heck Date: Mon, 22 Jul 2013 16:23:30 +0000 (+0200) Subject: Die Einstellung: ""Steuer im Preis inbegriffen" vorwählen" gefixt X-Git-Tag: release-3.1.0beta1~146^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ddbc0af54150d60dfc3a920be067156145bc6a1d;p=kivitendo-erp.git Die Einstellung: ""Steuer im Preis inbegriffen" vorwählen" gefixt fixt #2336 --- diff --git a/SL/Controller/CustomerVendor.pm b/SL/Controller/CustomerVendor.pm index 23c903687..b64c121af 100644 --- a/SL/Controller/CustomerVendor.pm +++ b/SL/Controller/CustomerVendor.pm @@ -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}; diff --git a/templates/webpages/customer_vendor/tabs/billing.html b/templates/webpages/customer_vendor/tabs/billing.html index ace2bd539..2e9ac4c1f 100644 --- a/templates/webpages/customer_vendor/tabs/billing.html +++ b/templates/webpages/customer_vendor/tabs/billing.html @@ -357,11 +357,13 @@ [%- END %] - [% 'taxincluded checked' | $T8 %] + [% IF ( SELF.is_customer() ) %] + [% 'taxincluded checked' | $T8 %] - - [% 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) %] - + + [% 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) %] + + [% END %]