Update RetailCrmService.php
This commit is contained in:
parent
5fbaafd4d7
commit
3deeb9921e
1 changed files with 20 additions and 21 deletions
|
@ -7,43 +7,42 @@ class RetailCrmService
|
|||
$deliveryCode = $order['delivery']['code'];
|
||||
if ($deliveryCode) {
|
||||
switch ($integrationDelivery[$deliveryCode]) {
|
||||
case "sdek":
|
||||
case "sdek":
|
||||
unset($order['number']);
|
||||
unset($order['height']);
|
||||
unset($order['length']);
|
||||
unset($order['width']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
break;
|
||||
case "dpd":
|
||||
unset($order['manager']);
|
||||
unset($order['firstName']);
|
||||
unset($order['lastName']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
break;
|
||||
case "newpost":
|
||||
unset($order['customer']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
unset($order['weight']);
|
||||
unset($order['phone']);
|
||||
unset($order['delivery']['cost']);
|
||||
unset($order['shipmentStore']);
|
||||
unset($order['delivery']['address']);
|
||||
unset($order['delivery']['data']);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $order;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue