Commit f8a91565 authored by Tom Ashe's avatar Tom Ashe
Browse files

Issue #3310698 by TomTech: Standardize on shipFrom/shipTo

parent 931f3bbf
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -272,15 +272,10 @@ class AvataxLib implements AvataxLibInterface {
      if ($purchased_entity instanceof ProductVariationInterface) {
        $line_item['itemCode'] = $purchased_entity->getSku();
      }
      if ($has_shipments) {
      $line_item['addresses'] = [
        'shipFrom' => self::formatAddress($store->getAddress()),
        'shipTo' => self::formatAddress($address),
      ];
      }
      else {
        $line_item['addresses']['singleLocation'] = self::formatAddress($address);
      }

      $line_item['taxCode'] = $this->chainTaxCodeResolver->resolve($order_item);
      $request_body['lines'][] = $line_item;