Skip to content

Conversation

@snitin315
Copy link
Member

@snitin315 snitin315 commented Jan 25, 2020

Fixes #3521

Short description of what this resolves:

Added minOrder-maxOrder & minPrice-maxPrice validation in ticket-input.
(Server checks are already present.)

Changes proposed in this pull request:

Screenshot from 2020-01-25 22-36-23

Screenshot from 2020-01-25 22-37-11

@auto-label auto-label bot added the fix label Jan 25, 2020
@snitin315 snitin315 requested a review from kushthedude January 26, 2020 11:16
window.$.fn.form.settings.rules.checkMaxMinOrder = () => {
return this.$('.ui.form').form('get value', 'ticket_min_order') <= this.$('.ui.form').form('get value', 'ticket_max_order');
};
window.$.fn.form.settings.rules.checkMaxTotal = () => {
Copy link
Member

Choose a reason for hiding this comment

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

Check if server validations are present for them or not.
If not then first server validations need to be added then the FE

Copy link
Member Author

@snitin315 snitin315 Jan 29, 2020

Choose a reason for hiding this comment

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

@kushthedude Yes the server validations are already persent.

Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot from 2020-01-29 15-56-54

Screenshot from 2020-01-29 15-57-14

@snitin315 snitin315 requested a review from kushthedude February 4, 2020 14:13
@codecov
Copy link

codecov bot commented Feb 5, 2020

Codecov Report

Merging #3849 into development will increase coverage by 0.02%.
The diff coverage is 50%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #3849      +/-   ##
===============================================
+ Coverage        21.83%   21.86%   +0.02%     
===============================================
  Files              460      460              
  Lines             4726     4730       +4     
===============================================
+ Hits              1032     1034       +2     
- Misses            3694     3696       +2
Impacted Files Coverage Δ
app/components/forms/wizard/basic-details-step.js 25.97% <50%> (+1.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 457e877...f6490f8. Read the comment docs.

@iamareebjamal iamareebjamal changed the title fix: minOrder-maxOrder & minPrice-maxPrice validation in ticket-input fix: minOrder-maxOrder & minPrice-maxPrice validation in basic-details-step Feb 6, 2020
@iamareebjamal iamareebjamal merged commit 0bbaa13 into fossasia:development Feb 6, 2020
@snitin315 snitin315 deleted the patch-5 branch August 5, 2020 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frontend check for min order and max order in ticketing system

3 participants