diff --git a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json index e5a531fd..1da4499e 100644 --- a/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json +++ b/custom/Espo/Custom/Resources/metadata/entityDefs/CBankverbindungen.json @@ -10,12 +10,10 @@ "type": "varchar", "required": false, "maxLength": 42, - "pattern": "/^[A-Z]{2}[0-9]{2}[\\s]?[A-Z0-9]{4}[\\s]?[A-Z0-9]{4}[\\s]?[A-Z0-9]{4}[\\s]?[A-Z0-9]{4}[\\s]?[A-Z0-9]{0,4}[\\s]?[A-Z0-9]{0,2}$/i", "tooltip": true, "isCustom": true, "copyToClipboard": true, - "audited": true, - "options": [] + "audited": true }, "bic": { "type": "varchar", @@ -145,9 +143,6 @@ "orderBy": "createdAt", "order": "desc" }, - "formula": { - "beforeSaveApiScript": "// IBAN-Validierung mit Modulo-97-Algorithmus\nif (!string\\isEmpty(iban)) {\n // Leerzeichen entfernen für Validierung\n $ibanClean = string\\replace(iban, ' ', '');\n \n // Mathematische IBAN-Prüfung\n if (!iban\\validate($ibanClean)) {\n recordService\\throwBadRequest('Ungültige IBAN: Die Prüfziffer ist mathematisch falsch. Bitte überprüfen Sie die eingegebene IBAN.');\n }\n}" - }, "indexes": { "name": { "columns": [ diff --git a/custom/Espo/Custom/Resources/metadata/formula/CBankverbindungen.json b/custom/Espo/Custom/Resources/metadata/formula/CBankverbindungen.json new file mode 100644 index 00000000..744c52e4 --- /dev/null +++ b/custom/Espo/Custom/Resources/metadata/formula/CBankverbindungen.json @@ -0,0 +1,3 @@ +{ + "beforeSaveApiScript": "// IBAN-Validierung mit Modulo-97-Algorithmus\nif (iban != null && iban != '') {\n // Leerzeichen entfernen für Validierung\n $ibanClean = string\\replace(iban, ' ', '');\n \n // Mathematische IBAN-Prüfung\n if (!iban\\validate($ibanClean)) {\n recordService\\throwBadRequest('Ungültige IBAN: Die Prüfziffer ist mathematisch falsch. Bitte überprüfen Sie die eingegebene IBAN.');\n }\n}" +} \ No newline at end of file diff --git a/data/config.php b/data/config.php index 9bce3387..1f700971 100644 --- a/data/config.php +++ b/data/config.php @@ -349,8 +349,8 @@ return [ 0 => 'youtube.com', 1 => 'google.com' ], - 'cacheTimestamp' => 1769179847, - 'microtime' => 1769179847.572829, + 'cacheTimestamp' => 1769180353, + 'microtime' => 1769180353.404299, 'siteUrl' => 'https://crm.bitbylaw.com', 'fullTextSearchMinLength' => 4, 'appTimestamp' => 1768843902,