// Invoice search fix

This commit is contained in:
Jerome Nadaud
2013-11-15 15:00:56 +01:00
parent 9fa2299c6b
commit 44f89053e4
3 changed files with 29 additions and 2 deletions
+5
View File
@@ -1067,4 +1067,9 @@ class ValidateCore
{
return (preg_match('/^[0-1]\.[0-9]{1,2}(\.[0-9]{1,2}){0,2}$/', $version) && ip2long($version));
}
public static function isOrderInvoiceNumber($id)
{
return (preg_match('/^['.Configuration::get('PS_INVOICE_PREFIX', Context::getContext()->language->id).']*([0-9]+)?/i', $id));
}
}