-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Wrong invoice prefix in multistore setup due to default store id #14063
Comments
@shinesoftware, thank you for your report. |
I am working on this at #dmcdindia |
Accepted Public Pull Requests: - #15372: Fixed Purchased Order Form button should visible properly (by @vgelani) - #15336: #12820 - Wrong annotation in _toOptionArray - magento/framework/Data/� (by @sanjay-wagento) - #15332: #14063 - Wrong invoice prefix in multistore setup due to default stor� (by @sanjay-wagento) - #15347: Fixed breadcrumb quote issue in product page #15037 (by @jignesh-baldha) - #15275: [fix] typo in method name _exportAddress[s]es (by @mhauri) - #15247: ISSUE-14747 Newsletter subscription confirmation message does not dis� (by @KaushikChavda) - #15089: Fix unnecessary recalculation of product list pricing (by @JeroenVanLeusden) Fixed GitHub Issues: - #15334: Purchased Order Form button should visible properly (reported by @neeta-wagento) has been fixed in #15372 by @vgelani in 2.2-develop branch Related commits: 1. 35b2cdf 2. be8c6cb - #15037: Product Details Page breadcrumbs cause syntax error on products containing quotes (reported by @brian-labelle) has been fixed in #15347 by @jignesh-baldha in 2.2-develop branch Related commits: 1. 6fcfb88 2. bfb39b5 3. 8e93b0d - #14747: Newsletter subscription confirmation message does not display after clicking link in email (reported by @tohann) has been fixed in #15247 by @KaushikChavda in 2.2-develop branch Related commits: 1. 6eb96c6 - #14941: Unnecessary recalculation of product list pricing causes huge slowdowns (reported by @paales) has been fixed in #15089 by @JeroenVanLeusden in 2.2-develop branch Related commits: 1. c5536d3
[Forwardport] magento#14063 - Wrong invoice prefix in multistore setup due to default stor…
[Backport] magento#14063 - Wrong invoice prefix in multistore setup due to default stor…
Hi @shinesoftware. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
…etup due to default store id (fix order increment id)
…etup due to default stor… #15821
Accepted Public Pull Requests: - #15287: [Backport] Handle empty or incorrect lines in a language CSV (by @VitaliyBoyko) - #15860: [Backport] ISSUE-14747 Newsletter subscription confirmation message does not dis� (by @rahul-kachhadiya) - #15236: [Backport] Add price calculation improvement for product option value price (by @VitaliyBoyko) - #15821: [Backport] #14063 - Wrong invoice prefix in multistore setup due to default stor� (by @sanjay-wagento) - #15289: [Backport] Naming collision in Javascript ui registry (backend) (by @VitaliyBoyko) - #15699: [Backport] Variant product image in sidebar wishlist block (by @dmytro-ch) - #15722: [Backport] Fix Magento_ImportExport not supporting unicode characters in column names (by @tdgroot) Fixed GitHub Issues: - #14747: Newsletter subscription confirmation message does not display after clicking link in email (reported by @tohann) has been fixed in #15860 by @rahul-kachhadiya in 2.1-develop branch Related commits: 1. 1839f97
Hi @TomashKhamlai. Thank you for working on this issue.
|
The issue was re-tested and we can confirm that it was fixed on the 2.3 release branch. We closing this issue as fixed due to upcoming 2.3 release that will be available soon. |
Preconditions
Ubuntu, Standard LAMP (Apache, MySQL, ....)
Magento ver. 2.1.9 - Clean setup by command line
PHP 7.0.8-0ubuntu0.16.04.3 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
mysql Ver 14.14 Distrib 5.7.17, for Linux (x86_64) using EditLine wrapper
Steps to reproduce
Magento Store Configuration
The magento store has been configured as multistore with multiviews.
I have discovered that Magento 2 set the DefaultStoreId in the second getSequence() parameter but this is not good if you need to set a correct prefix for the invoices. Look at https://github.com/magento/magento2/blob/2.2-develop/app/code/Magento/Sales/Model/ResourceModel/EntityAbstract.php#L129
If create an order from the administration panel for the Store B English Store View you'll get the Default Store Id equals to 2 but the correct value is 4.
Expected result
I would like to set the correct invoice prefix when I try to create a new invoice from a specific store view.
Actual result
Magento creates the invoice number using the default store view id
I suggest to change the storeid parameter:
thanks
The text was updated successfully, but these errors were encountered: