|
|
@@ -717,25 +717,22 @@ class ApproachDeclarationForm extends Model
|
|
|
}
|
|
|
|
|
|
if (!($zcResult = $this->addUser($allData))) {
|
|
|
- var_dump(1);
|
|
|
throw new Exception(Form::formatErrorsForApi($this->_userForm->getErrors()));
|
|
|
}
|
|
|
|
|
|
$decResult = $this->addDecOrder();
|
|
|
if (!$decResult) {
|
|
|
- var_dump(2);
|
|
|
throw new Exception(Form::formatErrorsForApi($decResult->getErrors()));
|
|
|
}
|
|
|
if($hasInstalment){
|
|
|
if(!($instalmentResult = $this->insertInstalment($zcResult))) {
|
|
|
- var_dump(3);
|
|
|
throw new Exception(Form::formatErrorsForApi('h'));
|
|
|
}
|
|
|
}
|
|
|
return $decResult;
|
|
|
} catch (\Exception $e) {
|
|
|
// throw new Exception(Form::formatErrorsForApi($e->getFile() . ' ' . $e->getLine() . ' ' . $e->getMessage()));
|
|
|
- var_dump($e->getTrace());
|
|
|
+ var_dump($e->getTrace());die();
|
|
|
throw new Exception(Form::formatErrorsForApi($e->getMessage() . ', ' . $e->getFile() . '(' . $e->getLine() . ')'));
|
|
|
}
|
|
|
}
|