From d1d9b5a75a8fc32c3857d387de3f8dfb3270a3d9 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Fri, 4 May 2007 09:07:11 +0000 Subject: [PATCH] Bug 639 behoben (Checkbox taxincluded hat sich bei Erneuern klicken deaktiviert) --- bin/mozilla/is.pl | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) 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} = ( -- 2.20.1