-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Discount Codes: Simplify Form #5758
fix: Discount Codes: Simplify Form #5758
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/cc3t014w9 |
Codecov Report
@@ Coverage Diff @@
## development #5758 +/- ##
===============================================
- Coverage 23.45% 23.40% -0.05%
===============================================
Files 512 513 +1
Lines 5445 5482 +37
Branches 63 62 -1
===============================================
+ Hits 1277 1283 +6
- Misses 4152 4183 +31
Partials 16 16
Continue to review full report at Codecov.
|
This reverts commit ae55d52.
This reverts commit 0652049.
@iamareebjamal I am not able to see the event timezone on the discount page? |
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.
Please Squash your commits.
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 checked the UI. It looks good for me. Was not able to test entire functionality yet. Please help with testing that as well.
@mariobehling where to make changes for this? |
Done #5759 |
@iamareebjamal Pls let me know to make any changes |
app/models/discount-code.js
Outdated
@@ -33,6 +32,9 @@ export default ModelBase.extend({ | |||
isExpired : computed('validTill', function() { | |||
return new Date() > new Date(this.validTill); | |||
}), | |||
maxQuantity: computed('ticketsNumber', function() { | |||
return this.ticketsNumber; |
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 don't think we need this, because if the ticketsNumber is changed, this won't change. Please make it a large number for now, like 100000, and open an issue on server to handle the maxQuantity being negative, i.e. -1
If it is negative, server should not limit the discount code count
Fixes #5750
Changes proposed in this pull request:
Simplify the discount of events as follows:
Checklist
development
branch.