|
|
@@ -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'));
|