"Steuer im Preis inbegriffen" nicht mehr beim Erneuern überschreiben.
authorThomas Heck <theck@linet-services.de>
Mon, 18 Mar 2013 16:56:53 +0000 (17:56 +0100)
committerThomas Heck <theck@linet-services.de>
Mon, 18 Mar 2013 16:56:53 +0000 (17:56 +0100)
fixt #2219

bin/mozilla/is.pl
bin/mozilla/oe.pl

index 8546cb6..d7e99b7 100644 (file)
@@ -411,7 +411,7 @@ sub form_footer {
   my ($tax, $subtotal);
   $form->{taxaccounts_array} = [ split(/ /, $form->{taxaccounts}) ];
 
-  if ($form->{customer_id}) {
+  if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
     my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();
     $form->{taxincluded} = defined($customer->taxincluded_checked) ? $customer->taxincluded_checked : $myconfig{taxincluded_checked};
   }
index cfdb11a..298d332 100644 (file)
@@ -483,7 +483,7 @@ sub form_footer {
   $TMPL_VAR{notes}    = qq|<textarea name=notes rows="$rows" cols="25">| . H($form->{notes}) . qq|</textarea>|;
   $TMPL_VAR{intnotes} = qq|<textarea name=intnotes rows="$introws" cols="35">| . H($form->{intnotes}) . qq|</textarea>|;
 
-  if ($form->{customer_id}) {
+  if( $form->{customer_id} && !$form->{taxincluded_changed_by_user} ) {
     my $customer = SL::DB::Customer->new(id => $form->{customer_id})->load();
     $form->{taxincluded} = defined($customer->taxincluded_checked) ? $customer->taxincluded_checked : $myconfig{taxincluded_checked};
   }