Merge pull request #22317 from bafbes/patch-1

Admit underscores in VAT codes as needed in Germany
This commit is contained in:
Laurent Destailleur 2022-09-19 17:47:02 +02:00 committed by GitHub
commit 5f196402a7
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];