Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 04f4f1cf

Von Moritz Bunkus vor mehr als 18 Jahren hinzugefügt

  • ID 04f4f1cf1d2b805cda8a24f8b0f7a56513bdecb0
  • Vorgänger 65682418
  • Nachfolger 079b834a

Steuerzonen können jetzt auch nachträglich geändert werden. Fix für Bugzilla #464. Zusätzlich etwas HTML-Quoting.

Unterschiede anzeigen:

bin/mozilla/ir.pl
foreach $item (@{ $form->{TAXZONE} }) {
if ($item->{id} == $form->{taxzone_id}) {
$form->{selecttaxzone} .=
"<option value=$item->{id} selected>$item->{description}</option>";
"<option value=$item->{id} selected>" . H($item->{description}) .
"</option>";
} else {
$form->{selecttaxzone} .=
"<option value=$item->{id}>$item->{description}</option>";
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
}
}
......
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/;
}
}
if ($form->{rowcount} >1) {
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/;
$form->{selecttaxzone} = $&;
}
$taxzone = qq|
<tr>
bin/mozilla/is.pl
foreach $item (@{ $form->{TAXZONE} }) {
if ($item->{id} == $form->{taxzone_id}) {
$form->{selecttaxzone} .=
"<option value=$item->{id} selected>$item->{description}</option>";
"<option value=$item->{id} selected>" . H($item->{description}) .
"</option>";
} else {
$form->{selecttaxzone} .=
"<option value=$item->{id}>$item->{description}</option>";
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
}
}
......
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/;
}
}
if ($form->{rowcount} >0) {
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/;
$form->{selecttaxzone} = $&;
}
$taxzone = qq|
<tr>
bin/mozilla/oe.pl
foreach $item (@{ $form->{TAXZONE} }) {
if ($item->{id} == $form->{taxzone_id}) {
$form->{selecttaxzone} .=
"<option value=$item->{id} selected>$item->{description}</option>";
"<option value=$item->{id} selected>" . H($item->{description}) .
"</option>";
} else {
$form->{selecttaxzone} .=
"<option value=$item->{id}>$item->{description}</option>";
"<option value=$item->{id}>" . H($item->{description}) . "</option>";
}
}
} else {
$form->{selecttaxzone} =~ s/ selected//g;
if ($form->{taxzone_id} ne "") {
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}/value=$form->{taxzone_id} selected/;
$form->{selecttaxzone} =~ s/value=$form->{taxzone_id}>/value=$form->{taxzone_id} selected>/;
}
}
if ($form->{rowcount} >0) {
$form->{selecttaxzone} =~ /<option value=\d+ selected>.*?<\/option>/;
$form->{selecttaxzone} = $&;
}
$taxzone = qq|
<tr>
<th align=right>| . $locale->text('Steuersatz') . qq|</th>

Auch abrufbar als: Unified diff