Opened 4 years ago
Last modified 4 years ago
#2242 closed Bug/Fehler
Fehler in vat_validation.php — at Initial Version
| Reported by: | Owned by: | somebody | |
|---|---|---|---|
| Priority: | normal | Milestone: | modified-shop-2.0.7.1 |
| Component: | Shop | Version: | 2.0.7.0 |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: |
Description
Hallo,
in der Datei /includes/classes/vat_validation.php hat sich m.E. ein Fehler eingeschlichen. Ab ca. Zeile 175 ist ein "fix for Greece" programmiert, der so nicht funktioniert bzw. die Funktion kaputt macht. Es wird geprüft, ob die Angabe des Landes mit dem Präfix der Umsatzsteuer-ID übereinstimmt.
Vor der Prüfung werden diese beiden Werte aber gleich gesetzt:
$country['checkcountries_iso_code_2'] = str_replace($search_array, $replace_array, $country);
Damit ist der Vergleich
if (strtoupper($country_check['countries_iso_code_2']) != strtoupper($country)) {...}
hinfällig, weil er niemals wahr ist.
Veit
