Update dict.php

Admit underscores in VAT codes as needed in Germany
This commit is contained in:
Bahfir Abbes 2022-09-16 20:46:39 +02:00 committed by GitHub
parent ee4d404148
commit 3ea15bd28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -843,7 +843,7 @@ if (empty($reshook)) {
$_POST["accountancy_code_buy"] = ''; // If empty, we force to null
}
if ($id == 10 && GETPOSTISSET("code")) { // Spaces are not allowed into code for tax dictionary
$_POST["code"] = preg_replace('/[^a-zA-Z0-9\-\+]/', '', GETPOST("code"));
$_POST["code"] = preg_replace('/[^a-zA-Z0-9_\-\+]/', '', GETPOST("code"));
}
$tablename = $tabname[$id];