commit
d5456617b1
@ -131,15 +131,23 @@ class RCrmActions
|
|||||||
$deliveryNotes = $deliveryObj->getValue('order_comments');
|
$deliveryNotes = $deliveryObj->getValue('order_comments');
|
||||||
|
|
||||||
if ($deliveryObj->getValue('region') !== null) {
|
if ($deliveryObj->getValue('region') !== null) {
|
||||||
$deliveryRegionObj = new umiObject($deliveryObj->getValue('region'));
|
try {
|
||||||
$deliveryRegion = $deliveryRegionObj->getName();
|
$deliveryRegionObj = new umiObject($deliveryObj->getValue('region'));
|
||||||
|
$deliveryRegion = $deliveryRegionObj->getName();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$deliveryRegion = $deliveryObj->getValue('region');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$deliveryRegion = '';
|
$deliveryRegion = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($deliveryObj->getValue('city') !== null) {
|
if ($deliveryObj->getValue('city') !== null) {
|
||||||
$deliveryCityObj = new umiObject($deliveryObj->getValue('city'));
|
try {
|
||||||
$deliveryCity = $deliveryCityObj->getName();
|
$deliveryCityObj = new umiObject($deliveryObj->getValue('city'));
|
||||||
|
$deliveryCity = $deliveryCityObj->getName();
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$deliveryCity = $deliveryObj->getValue('city');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$deliveryCity = '';
|
$deliveryCity = '';
|
||||||
}
|
}
|
||||||
@ -262,4 +270,4 @@ class RCrmActions
|
|||||||
|
|
||||||
return $orderToCrm;
|
return $orderToCrm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user