From fab5a76f5828ad248d9636c75454a0db3115b9fe Mon Sep 17 00:00:00 2001 From: morrning Date: Sat, 27 Sep 2025 13:24:27 +0330 Subject: [PATCH 1/2] Update for Moadian plugin --- hesabixCore/src/Dto/TaxSettingsDto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hesabixCore/src/Dto/TaxSettingsDto.php b/hesabixCore/src/Dto/TaxSettingsDto.php index 1a4229a..f27cd00 100644 --- a/hesabixCore/src/Dto/TaxSettingsDto.php +++ b/hesabixCore/src/Dto/TaxSettingsDto.php @@ -20,7 +20,7 @@ class TaxSettingsDto #[Assert\NotBlank(message: 'کد اقتصادی الزامی است.')] #[Assert\Regex( - pattern: '/^\d{11}$/', + pattern: '/^\d{11}|\d{14}$/', message: 'کد اقتصادی باید دقیقا ۱۱ رقم باشد.' )] public string $economicCode; From b64fd56d1cfd2376eb6d8bc6f2f2ea5e0b52bd73 Mon Sep 17 00:00:00 2001 From: morrning Date: Sat, 27 Sep 2025 13:34:09 +0330 Subject: [PATCH 2/2] Update for Moadian plugin --- hesabixCore/src/Dto/TaxSettingsDto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hesabixCore/src/Dto/TaxSettingsDto.php b/hesabixCore/src/Dto/TaxSettingsDto.php index f27cd00..54b1dd2 100644 --- a/hesabixCore/src/Dto/TaxSettingsDto.php +++ b/hesabixCore/src/Dto/TaxSettingsDto.php @@ -21,7 +21,7 @@ class TaxSettingsDto #[Assert\NotBlank(message: 'کد اقتصادی الزامی است.')] #[Assert\Regex( pattern: '/^\d{11}|\d{14}$/', - message: 'کد اقتصادی باید دقیقا ۱۱ رقم باشد.' + message: 'کد اقتصادی باید ۱۱ یا ۱۴ رقم باشد.' )] public string $economicCode;