-
-
Notifications
You must be signed in to change notification settings - Fork 85
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 GenerateInvoicesCommand selects order without number #148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm these changes solved the problem for me 😄
Thanks @tom10271 !
There is still one more thing to fix, I called Which interface or class should we set? |
The best solution would be creating a custom |
I have updated the commit. Please check again. Thank you everyone |
👍 The last thing that should be done is adding a not-placed order in the background of this feature file to check does this query for sure works as it should work :) Do you think you would be able to do it, @tom10271? |
Thank you, @tom10271! 🥇 |
That's a might weird solution. Why not check for Order->paymentState instead? Unpaid/cancelled orders have number, but don't qualify to have invoice. |
Supposedly those are cart orders and should not be selected for invoice generation