ryan 3 tygodni temu
rodzic
commit
b174b192e5
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      common/services/GuestDeclarationOrderService.php

+ 3 - 3
common/services/GuestDeclarationOrderService.php

@@ -189,7 +189,7 @@ class GuestDeclarationOrderService
         $levels = Cache::getDecLevelConfig();
         $minimumPv = $levels ? min(array_map(static function ($level) { return (float) $level['PERF']; }, $levels)) : 0;
         if ($pv < $minimumPv) {
-            throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
+            throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanSelectedBV').1);
         }
         if ((string) ($input['decWay'] ?? '') !== '1') {
             $selectedLevel = $levels[$input['decLv'] ?? ''] ?? null;
@@ -197,7 +197,7 @@ class GuestDeclarationOrderService
                 throw new BadRequestHttpException(Yii::t('app', 'pleaseSelectTheEntryLevel'));
             }
             if ($pv < (float) $selectedLevel['PERF']) {
-                throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
+                throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanSelectedBV').2);
             }
             $actualLevel = null;
             foreach ($levels as $levelId => $level) {
@@ -206,7 +206,7 @@ class GuestDeclarationOrderService
                 }
             }
             if ($actualLevel !== null && (string) $input['decLv'] !== (string) $actualLevel) {
-                throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
+                throw new BadRequestHttpException(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV').3);
             }
         }
         if ($amount <= 0 || empty($input['email']) || !filter_var($input['email'], FILTER_VALIDATE_EMAIL)) {