|
|
@@ -716,11 +716,13 @@ class DeclarationForm extends Model
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // todo: 3398代码块--off
|
|
|
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']){
|
|
|
@@ -728,14 +730,39 @@ class DeclarationForm extends Model
|
|
|
}
|
|
|
}
|
|
|
if ($this->decLv != $toDecLevel) {
|
|
|
-// if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
|
|
|
-// }else{
|
|
|
- throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV') . '-1');
|
|
|
-// }
|
|
|
+ if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
|
|
|
+ }else{
|
|
|
+ throw new Exception(Yii::t('app', 'totalBVCanNotLessThanNextSelectedLevelBV'));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ 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'));
|
|
|
+ // todo: 3398代码块--off
|
|
|
+
|
|
|
+ // todo: 3398代码块--on
|
|
|
+// if($totalPv<$decLevel['PERF']){
|
|
|
+//// if ($hasInstalment && $decLevel['LEVEL_NAME'] == 'Elite'){
|
|
|
+//// }else{
|
|
|
+// throw new Exception(Yii::t('app', 'totalBVCanNotLessThanSelectedBV'));
|
|
|
+//// }
|
|
|
+// }
|
|
|
+// foreach ($decLevelConfig as $key=>$val){
|
|
|
+// if($totalPv>=$val['PERF']){
|
|
|
+// $toDecLevel = $key;
|
|
|
+// }
|
|
|
// }
|
|
|
+// if ($this->decLv != $toDecLevel) {
|
|
|
+//// 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'));
|
|
|
+//// }
|
|
|
+ // todo: 3398代码块--on
|
|
|
+
|
|
|
$this->_decAmount = $totalAmount;
|
|
|
$this->_decPv = $totalPv;
|
|
|
$this->_decAmountStandard = $totalAmountStandard;
|