Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PT-12831): When creating an order, the customer number is now sto… #39

Merged
merged 1 commit into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Components/Order/Factory/OrderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ private function createBillingAddress(OrderStruct $orderStruct, Customer $custom
}

$billing->setCustomer($customer);
$billing->setNumber($customer->getNumber());

return $billing;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function testCreateBillingAddressShoudAddDefaultShippingToCustomer(): voi
static::assertInstanceOf(Address::class, $defaultBillingAddress);
static::assertSame(1, $defaultBillingAddress->getId());
static::assertSame('20001', $result->getCustomer()->getNumber());
static::assertSame('20001', $result->getNumber());
static::assertSame('Musterhausen', $result->getCity());
}

Expand Down
2 changes: 2 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
<changelog version="REPLACE_GLOBALLY_WITH_NEXT_VERSION(3.1.1)">
<changes lang="de">
PT-12411 - Deaktivierte Zahlungs- und Versandarten werden nicht mehr in den entsprechenden Auswahl-Listen zur Verfügung gestellt;
PT-12831 - Beim erstellen einer Bestellung wird nun auch die Kundennummer an der Rechnungsadresse gespeichert;
</changes>
<changes lang="en">
PT-12411 - Deactivated payment and shipping methods aren't available anymore in the corresponding selections;
PT-12831 - When creating an order, the customer number is now stored at the billing address;
</changes>
</changelog>

Expand Down