-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: check for paid orders to show billing info #6310
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
5c199ac to
52d46c2
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
|
@mrsaicharan1 @shreyanshdwivedi @iamareebjamal Please review |
kushthedude
left a comment
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.
Good to go
app/templates/pdf/order_invoice.html
Outdated
| {% endif %}<br> | ||
| </td> | ||
| {% if order.is_billing_enabled %} | ||
| {% if has_billing_info %} |
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.
Just a question, why do we need a check? If order.billing_info is serving the purpose
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.
New paid orders aren't using is_billing_enabled anymore, that's why .
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.
@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.
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.
@shreyanshdwivedi understood, fixing this
52d46c2 to
f2a2894
Compare
shreyanshdwivedi
left a comment
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 👍
Let's move forward with this PR now
Fixes #6309, fossasia/open-event-frontend#3367
Changes proposed in this pull request:
is_billing_enabledto true for paid ordersChecklist
developmentbranch.