Преглед на файлове

Merge branch 'feature/3398-stageGoodAdjust' into develop

kevin_zhangl преди 2 години
родител
ревизия
c313aeaadc
променени са 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 ($this->decLv != $toDecLevel) {
 //                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
 //                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
 //                    }else{
 //                    }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->_decAmount = $totalAmount;
                 $this->_decPv = $totalPv;
                 $this->_decPv = $totalPv;
                 $this->_decAmountStandard = $totalAmountStandard;
                 $this->_decAmountStandard = $totalAmountStandard;