47 if (!$orderAddress instanceof
Address) {
51 $vatRequestId = $orderAddress->getVatRequestId();
52 $vatRequestDate = $orderAddress->getVatRequestDate();
53 if (is_string($vatRequestId)
54 && !empty($vatRequestId)
55 && is_string($vatRequestDate)
56 && !empty($vatRequestDate)
58 $orderHistoryComment =
__(
'VAT Request Identifier')
59 .
': ' . $vatRequestId .
'<br />' 60 .
__(
'VAT Request Date') .
': ' . $vatRequestDate;
61 $orderInstance->addStatusHistoryComment($orderHistoryComment,
false);
74 $configAddressType = $this->customerAddressHelper->getTaxCalculationAddressType(
$store);
76 ?
$order->getShippingAddress()
77 :
$order->getBillingAddress();
79 return $requiredAddress;
execute(Observer $observer)