From: Thomas Kasulke Date: Fri, 4 May 2007 09:07:11 +0000 (+0000) Subject: Bug 639 behoben (Checkbox taxincluded hat sich bei Erneuern klicken deaktiviert) X-Git-Tag: release-2.4.3^2~395 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d1d9b5a75a8fc32c3857d387de3f8dfb3270a3d9;p=kivitendo-erp.git Bug 639 behoben (Checkbox taxincluded hat sich bei Erneuern klicken deaktiviert) --- diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 914057454..0b4c0e5d1 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -38,7 +38,7 @@ use Data::Dumper; require "bin/mozilla/io.pl"; require "bin/mozilla/arap.pl"; require "bin/mozilla/drafts.pl"; - +$form->{"Watchdog::taxincluded"} = 1; 1; # end of main @@ -845,13 +845,13 @@ sub form_footer { qq||; $intnotes = qq||; - - $form->{taxincluded} = ($form->{taxincluded}) ? "checked" : ""; + + $form->{taxincluded} = ($form->{taxincluded} == 1 ? "checked" : ""); $taxincluded = ""; if ($form->{taxaccounts}) { $taxincluded = qq| - {taxincluded}> | + {taxincluded}> | . $locale->text('Tax Included') . qq|

|; } @@ -1208,10 +1208,19 @@ sub update { $form->{print_and_post} = 0; } + + if($form->{taxincluded}) { + $taxincluded = "checked"; + } $form->{update} = 1; &check_name(customer); + if(!$form->{taxincluded}) { + $form->{taxincluded} = $taxincluded; + } + + $form->{exchangerate} = $exchangerate if ( $form->{forex} = (