Merge branch 'fronkdev' into 'master'
Importing Workorders from salescluster instead of from building now See merge request fronk/thetool!675
This commit is contained in:
@@ -823,10 +823,16 @@ class PreordercampaignController extends mfBaseController {
|
||||
$this->log->error("Cannot create RimoWorkorder! Invalid Response! (Preorder code: ".$preorder->ucode.") | Response: \n$response");
|
||||
throw new Exception("Cannot create RimoWorkorder! Invalid Response! (Preorder code: ".$preorder->ucode.")");
|
||||
}
|
||||
|
||||
|
||||
$rimo_status = $resp_data->status->userLabel;
|
||||
if(!$rimo_status) {
|
||||
$rimo_status = "";
|
||||
}
|
||||
|
||||
$wo = RimoWorkorderModel::create([
|
||||
"rimo_id" => $resp_data->id,
|
||||
"rimo_name" => $resp_data->name,
|
||||
"rimo_status" => $rimo_status,
|
||||
"adb_wohneinheit_id" => $preorder->adb_wohneinheit_id,
|
||||
"create_data" => $response
|
||||
]);
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
<?php
|
||||
|
||||
class RimoWorkorderModel {
|
||||
public $rimo_id;
|
||||
public $rimo_name;
|
||||
public $adb_wohneinheit_id;
|
||||
public $termination_id;
|
||||
public $rimo_id;
|
||||
public $rimo_name;
|
||||
public $rimo_status;
|
||||
public $rimo_team_id;
|
||||
public $rimo_team_name;
|
||||
public $create_data;
|
||||
|
||||
|
||||
public $create_by;
|
||||
public $edit_by;
|
||||
public $create;
|
||||
|
||||
Reference in New Issue
Block a user