On rajoute les derniers modules et on modifie les CSS
This commit is contained in:
@@ -296,6 +296,7 @@ class ColissimoLabelGenerator
|
||||
);
|
||||
$this->request->setSenderAddress($senderAddr);
|
||||
/** @var Address $customerAddrDb */
|
||||
$customerDeliveryAddr = $this->data['customer_addr'];
|
||||
if ($colissimoService->type == ColissimoService::TYPE_RELAIS) {
|
||||
$customerAddrDb = $this->data['customer_addr_inv'];
|
||||
} else {
|
||||
@@ -306,8 +307,8 @@ class ColissimoLabelGenerator
|
||||
'codeBarForReference' => true,
|
||||
'address' => array(
|
||||
'companyName' => $customerAddrDb->company,
|
||||
'lastName' => $customerAddrDb->lastname,
|
||||
'firstName' => $customerAddrDb->firstname,
|
||||
'lastName' => $customerDeliveryAddr->lastname,
|
||||
'firstName' => $customerDeliveryAddr->firstname,
|
||||
'line2' => $customerAddrDb->address1,
|
||||
'line3' => $customerAddrDb->address2,
|
||||
'countryCode' => Country::getIsoById($customerAddrDb->id_country),
|
||||
@@ -504,6 +505,10 @@ class ColissimoLabelGenerator
|
||||
$this->request->buildRequest();
|
||||
$client = new ColissimoClient();
|
||||
$client->setRequest($this->request);
|
||||
$this->logger->info(
|
||||
sprintf('Order #%d (%s) - Request', $this->data['order']->id, $this->data['order']->reference),
|
||||
array('request' => json_decode($this->request->getRequest(true), true))
|
||||
);
|
||||
/** @var ColissimoGenerateLabelResponse $response */
|
||||
$response = $client->request();
|
||||
$this->logger->info(
|
||||
|
||||
@@ -50,7 +50,7 @@ class ColissimoTools
|
||||
public static $isoOutreMerZone2 = array('NC', 'PF', 'WF', 'TF');
|
||||
|
||||
/** @var array $isoOutreMerZone1Special Outre-Mer zone 1, special rules with Inter-Dom & FR shipments */
|
||||
public static $isoOutreMerZone1Special = array('GP', 'MQ');
|
||||
public static $isoOutreMerZone1Special = array('GP', 'MQ', 'BL', 'MF');
|
||||
|
||||
//@formatter:off
|
||||
/** @var array $isoOutreMerReturnSpecial Outre-Mer special : we can make return from these ISO to only these same ISO + 3 FR ISO */
|
||||
@@ -1050,13 +1050,13 @@ class ColissimoTools
|
||||
*/
|
||||
public static function createAddressFromPickupPoint($pickupPoint, $order, $phone)
|
||||
{
|
||||
$customer = new Customer((int) $order->id_customer);
|
||||
$idCountry = Country::getByIso($pickupPoint->iso_country);
|
||||
$deliveryAddress = new Address((int) $order->id_address_delivery);
|
||||
$pickupPointAddress = new Address();
|
||||
$pickupPointAddress->id_customer = (int) $order->id_customer;
|
||||
$pickupPointAddress->alias = 'COLISSIMO POINT PICKUP '.(int) $pickupPoint->id;
|
||||
$pickupPointAddress->lastname = pSQL($customer->lastname);
|
||||
$pickupPointAddress->firstname = pSQL($customer->firstname);
|
||||
$pickupPointAddress->lastname = pSQL($deliveryAddress->lastname);
|
||||
$pickupPointAddress->firstname = pSQL($deliveryAddress->firstname);
|
||||
$pickupPointAddress->company = pSQL($pickupPoint->company_name);
|
||||
$pickupPointAddress->address1 = pSQL($pickupPoint->address1);
|
||||
$pickupPointAddress->address2 = pSQL($pickupPoint->address2);
|
||||
|
||||
Reference in New Issue
Block a user