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

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];