-
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: Restructure Account Invoice Tab #5049
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/p06ute571 |
cellComponent : 'ui-table/cell/events/cell-action' | ||
} | ||
|
||
]; |
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 understand. It's the exact same code. Why are there else if statements everywhere?
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 understand. It's the exact same code. Why are there else if statements everywhere?
it will be changed, I don't know what would be the exact column name. Not mentioned in issue.
Are these statuses present in the server? |
created a PR, but only added option in status like |
Codecov Report
@@ Coverage Diff @@
## development #5049 +/- ##
===============================================
+ Coverage 22.68% 22.85% +0.16%
===============================================
Files 488 489 +1
Lines 5183 5177 -6
Branches 21 35 +14
===============================================
+ Hits 1176 1183 +7
+ Misses 4003 3989 -14
- Partials 4 5 +1
Continue to review full report at Codecov.
|
What's next in this issue, how to proceed? |
Please remove unpaid and overdue status |
ok |
i haven't added overdue status |
From server as well please |
Then you need to make some dummy event invoices in the DB and check that they show up in the frontend under proper tabs |
Done |
ok |
You can use this - http://localhost:5000/admin/eventinvoice/new/ |
is it invoicepdfurl, which I need to add in first column? |
And how to do this - |
Yes |
This will be solved in other issue |
case 'refunding': | ||
return this.l10n.t('Refunding'); | ||
case 'refunded': | ||
return this.l10n.t('Refunded'); |
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.
Simply use capitalize function instead of switch case. Check out admin/sessions/list
route. Use All
in else
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.
ok
@@ -21,7 +27,7 @@ export default class extends Route.extend(EmberTableRouteMixin) { | |||
this.set('params', params); | |||
const searchField = 'status'; | |||
let filterOptions = []; | |||
if (params.invoice_status === 'paid' || params.invoice_status === 'due') { | |||
if (params.invoice_status === 'paid' || params.invoice_status === 'due' || params.invoice_status === 'refunding' || params.invoice_status === 'refunded') { |
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.
Use ['paid', ...].includes(params.invoice_status)
Also, upcoming is not a valid state |
it is calculated |
Change it to |
|
it's showing page correctly but not invoice data |
the page is showing correctly for the user now, accessible, not showing dummy data.Assertion Failed: Cannot call get with 'count' on an undefined object. |
Check the API response in network tab |
Checking |
It's because of stupid ember data expecting relationship in user to be Please create a PR on server fixing this relationship in user schema |
Checked by doing that and still not working. Finding out why |
It should be named |
Pull the changes in fossasia/open-event-server#7270 locally and change it to |
ok |
Show the error, not just screenshot |
And access error when using |
You must not have changed |
That's the change I was asking you to make - |
on making all changes that's why there is this error - Uncaught (in promise) Error: Assertion Failed: Cannot call get with 'count' on an undefined object |
|
Please work on other issues |
ok |
Complexity decreasing per file
==============================
+ app/routes/account/billing/invoices/list.js -3
See the complete overview on Codacy |
Fixes #4959
Checklist
development
branch.