Przeglądaj źródła

水机报单修改

kevin_zhangl 2 lat temu
rodzic
commit
9ccf7ad27d

+ 6 - 6
common/models/forms/ApproachDeclarationForm.php

@@ -687,10 +687,10 @@ class ApproachDeclarationForm extends Model
                     }
 
                     if($totalPv<$decLevel['PERF']){
-//                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
-//                        }else{
+                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                        }else{
                             throw new Exception(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
-//                        }
+                        }
                     }
                     foreach ($decLevelConfig as $key => $val) {
                         if ($totalPv >= $val['PERF']) {
@@ -698,10 +698,10 @@ class ApproachDeclarationForm extends Model
                         }
                     }
                     if ($this->decLv != $toDecLevel) {
-//                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
-//                        }else{
+                        if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                        }else{
                             throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
-//                        }
+                        }
                     }
 
 

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

@@ -718,10 +718,10 @@ class DeclarationForm extends Model
                 }
 
                 if($totalPv<$decLevel['PERF']){
-//                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
-//                    }else{
+                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                    }else{
                         throw new Exception(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
-//                    }
+                    }
                 }
                 foreach ($decLevelConfig as $key=>$val){
                     if($totalPv>=$val['PERF']){
@@ -729,10 +729,10 @@ class DeclarationForm extends Model
                     }
                 }
                 if ($this->decLv != $toDecLevel) {
-//                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
-//                    }else{
+                    if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
+                    }else{
                         throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV') . '-1');
-//                    }
+                    }
                 }
 //                if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'BA'){
 //                    throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));