kevin_zhangl 2 лет назад
Родитель
Сommit
b18648b131
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      common/models/forms/DeclarationForm.php

+ 4 - 4
common/models/forms/DeclarationForm.php

@@ -724,12 +724,12 @@ class DeclarationForm extends Model
                 if ($this->decLv != $toDecLevel) {
 //                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
 //                    }else{
-                        throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
+                        throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV') . '-1');
 //                    }
                 }
-                if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'BA'){
-                    throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
-                }
+//                if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'BA'){
+//                    throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
+//                }
                 $this->_decAmount = $totalAmount;
                 $this->_decPv = $totalPv;
                 $this->_decAmountStandard = $totalAmountStandard;