|
@@ -717,15 +717,18 @@ class ApproachDeclarationForm extends Model
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (!($zcResult = $this->addUser($allData))) {
|
|
if (!($zcResult = $this->addUser($allData))) {
|
|
|
|
|
+ var_dump(1);
|
|
|
throw new Exception(Form::formatErrorsForApi($this->_userForm->getErrors()));
|
|
throw new Exception(Form::formatErrorsForApi($this->_userForm->getErrors()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$decResult = $this->addDecOrder();
|
|
$decResult = $this->addDecOrder();
|
|
|
if (!$decResult) {
|
|
if (!$decResult) {
|
|
|
|
|
+ var_dump(2);
|
|
|
throw new Exception(Form::formatErrorsForApi($decResult->getErrors()));
|
|
throw new Exception(Form::formatErrorsForApi($decResult->getErrors()));
|
|
|
}
|
|
}
|
|
|
if($hasInstalment){
|
|
if($hasInstalment){
|
|
|
if(!($instalmentResult = $this->insertInstalment($zcResult))) {
|
|
if(!($instalmentResult = $this->insertInstalment($zcResult))) {
|
|
|
|
|
+ var_dump(3);
|
|
|
throw new Exception(Form::formatErrorsForApi('h'));
|
|
throw new Exception(Form::formatErrorsForApi('h'));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|