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

[Order] Fix number generator #5562

Merged
merged 1 commit into from
Jul 21, 2016

Conversation

GSadee
Copy link
Member

@GSadee GSadee commented Jul 21, 2016

Q A
Bug fix? no
New feature? no
BC breaks? no
Related tickets
License MIT

@pjedrzejewski pjedrzejewski added the Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). label Jul 21, 2016
@GSadee GSadee force-pushed the order-generator-fixes branch from 7705351 to 9ac8d88 Compare July 21, 2016 10:17
@pjedrzejewski pjedrzejewski merged commit b252a8e into Sylius:master Jul 21, 2016
@pjedrzejewski
Copy link
Member

👍

* @return string
*/
public function generate();
public function generate(OrderInterface $order);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you do this? It is just a generator and it does not care about an order itself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to generate order number based on: channel code, date, customer group... whatever. This gives us access to all info about the order. Otherwise we have 0.

@GSadee GSadee deleted the order-generator-fixes branch September 22, 2017 08:32
pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants