Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit d1e6f82

Browse files
committed
Sync billing with shipping address on Admin Order Page
- Fixed failed FAT
1 parent 1743a36 commit d1e6f82

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,7 @@ public function setBillingAddress($address)
14771477
// but if quote already has the billing address it won't be overridden
14781478
if (empty($billingAddress->getCustomerAddressId())) {
14791479
$quote->removeAddress($quote->getBillingAddress()->getId());
1480+
$billingAddress->setCustomerAddressId(null);
14801481
}
14811482
$quote->setBillingAddress($billingAddress);
14821483

@@ -1779,6 +1780,7 @@ public function _prepareCustomer()
17791780
$address = $this->getShippingAddress()->setCustomerId($this->getQuote()->getCustomer()->getId());
17801781
$this->setShippingAddress($address);
17811782
}
1783+
$this->getBillingAddress()->setCustomerId($customer->getId());
17821784
$this->getQuote()->updateCustomerData($this->getQuote()->getCustomer());
17831785

17841786
$customer = $this->getQuote()->getCustomer();

0 commit comments

Comments
 (0)