X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/af0023e07e144ca31d465b098c36c45971269438..7f596996a8925fb6fa32c51f9dd4c32a24728c99:/bin/mozilla/is.pl diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 9d48cf2d8..20b497c31 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -408,13 +408,7 @@ sub form_footer { IS->get_customer(\%myconfig, \%$form) if $form->{type} =~ /sales_(order|quotation)/; if ( $form->{vc} eq 'customer' && !$form->{taxincluded_changed_by_user} ) { - if ( $form->{taxincluded_checked} eq 'y' ) { - $form->{taxincluded} = 1; - } elsif ( $form->{taxincluded_checked} eq 'n' ) { - $form->{taxincluded} = 0; - } else { - $form->{taxincluded} = $myconfig{taxincluded_checked}; - } + $form->{taxincluded} = defined($form->{taxincluded_checked}) ? $form->{taxincluded_checked} : $myconfig{taxincluded_checked}; } foreach my $item (@{ $form->{taxaccounts_array} }) {