Skip to content

Conversation

@uds5501
Copy link
Contributor

@uds5501 uds5501 commented Aug 5, 2019

Fixes #6309, fossasia/open-event-frontend#3367

Changes proposed in this pull request:

  • Edit validation check
  • Set is_billing_enabled to true for paid orders

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@codecov
Copy link

codecov bot commented Aug 5, 2019

Codecov Report

Merging #6310 into development will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6310      +/-   ##
===============================================
- Coverage        65.25%   65.24%   -0.01%     
===============================================
  Files              287      287              
  Lines            14727    14728       +1     
===============================================
  Hits              9610     9610              
- Misses            5117     5118       +1
Impacted Files Coverage Δ
app/api/orders.py 28.34% <0%> (-0.1%) ⬇️

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 a7ad48c...f2a2894. Read the comment docs.

@uds5501
Copy link
Contributor Author

uds5501 commented Aug 6, 2019

@mrsaicharan1 @shreyanshdwivedi @iamareebjamal Please review

kushthedude
kushthedude previously approved these changes Aug 6, 2019
Copy link
Member

@kushthedude kushthedude left a comment

Choose a reason for hiding this comment

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

Good to go

{% endif %}<br>
</td>
{% if order.is_billing_enabled %}
{% if has_billing_info %}
Copy link
Member

Choose a reason for hiding this comment

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

Just a question, why do we need a check? If order.billing_info is serving the purpose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

New paid orders aren't using is_billing_enabled anymore, that's why .

Copy link
Member

Choose a reason for hiding this comment

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

@uds5501 can't we proceed to make is_billing_enabled true is order isn't free either on server or on fron so that we can maintain the consistency of data? I think this will be a better approach because we can anytime get if a order has billing info or not just by a single field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shreyanshdwivedi understood, fixing this

Copy link
Member

@shreyanshdwivedi shreyanshdwivedi left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Let's move forward with this PR now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Billing Information not showing up in placed orders PDF

6 participants