-
Notifications
You must be signed in to change notification settings - Fork 5
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
Unique coupon code in org and assignee email in item #295
Conversation
DiscountCoupon.code == field.data | ||
) | ||
.notempty() | ||
): |
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'm not sure I get the difference between these two queries. Explain it?
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.
Previously it was searching for other instances of the same code being used in the same discount policy. I changed it to look inside the same organization until we figure out how to do it within the same item collection. Right now there is no relationship between a discount policy and an item collection, and discount coupons are created within an organization, and not an item collection. Hence this.
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.
A couple small issues and then good to merge.
@qurbat this one is for you. |
…#296) * Move webpack config and package json to assets folder. Add Make file * remove manifest.json * node_modules is already ignored below * Add make to travis script file
…into fix-coupon-code
This has 2 fixes -
Explanation for change in how discounts are looked up: