-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat:Adds quantity support & prevents zero valued donation tickets #3194
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
Conversation
44da679 to
16f8107
Compare
|
@CosmicCoder96 @niranjan94 @uds5501 @shreyanshdwivedi I was able to add support for quantity in donation tickets. |
16f8107 to
ede0e0d
Compare
Add a server validation for minimum number of tickets . @mrsaicharan1 |
Yeah I figured that part out but now suppose I want to check if the order contains a donation ticket with amount given as zero and the following data is being sent to create an order, won't be able to check it as there is no ticket info going through. |
ede0e0d to
e0fcf78
Compare
7f0b107 to
bc4388b
Compare
|
I've added a computed function which would disable the order now button if the ticket price for donations is 0. But there seems to be some error @shreyanshdwivedi @uds5501 |
299fc6d to
c08fdae
Compare
ddcf947 to
9698259
Compare
9698259 to
83c7519
Compare
55d7464 to
4d17ae2
Compare
|
I've changed the condition such that the donation price should be greater than the minimum price set for it by the organizer. |
4d17ae2 to
667907f
Compare
|
@mariobehling @CosmicCoder96 Please have a look at 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.
LGTM
2683d74 to
2bbfb4a
Compare
|
@CosmicCoder96 Updated with the min/max validation rule.Please review. |
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.
LGTM
|
In the validation rule, when I use object structuring/destructuring, i.e But when I just use |
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.
@mrsaicharan1 This PR needs more modification see this images :
|
@mrsaicharan1 The |
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.
when I use object structuring/destructuring, i.e let { tickets } = this.tickets
|
|
||
| getValidationRules() { | ||
| window.$.fn.form.settings.rules.checkMaxMin = () => { | ||
| let { tickets } = this.tickets; |
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.
Incorrect.
Should be
let { tickets } = this;But then, why do you even need to store it in a variable ? You can directly use this.tickets everywhere right ?
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.
@niranjan94 Yes, you're right. Will use it.
4bdc17b to
12dc861
Compare
12dc861 to
974e2f5
Compare


Fixes #3184
When organizer tries to adds tickets worth of 0 value

When the ticket buyer tries to add zero valued donation tickets

Short description of what this resolves:
Does not allow donation tickets worth of 0 value to be purchased & adds quantity support
Changes proposed in this pull request:
Checklist
developmentbranch.