Skip to content
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: Paid Donation ticket sale stats #5782

Merged

Conversation

sachinchauhan2889
Copy link
Contributor

@sachinchauhan2889 sachinchauhan2889 commented Nov 27, 2020

Fixes #5781

Short description of what this resolves:

Earlier:-- Paid donation tickets do not show up on the orders overview page. The calculation of tickets sales works correctly. However the donation tickets show 0 in the table.

this PR resolve this.

screenshots

before
before today

after

after today

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter 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)

@auto-label auto-label bot added the fix label Nov 27, 2020
@vercel
Copy link

vercel bot commented Nov 27, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/eventyay/open-event-frontend/34j6g05wf
✅ Preview: https://open-event-frontend-git-fix-donation-ticket-sale.eventyay.vercel.app

mariobehling
mariobehling previously approved these changes Nov 27, 2020
@sachinchauhan2889
Copy link
Contributor Author

final-fix

final-fix-2

@codecov
Copy link

codecov bot commented Nov 27, 2020

Codecov Report

Merging #5782 (b8b39d9) into development (53ce749) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #5782   +/-   ##
============================================
  Coverage        23.50%   23.50%           
============================================
  Files              512      512           
  Lines             5445     5445           
  Branches            63       63           
============================================
  Hits              1280     1280           
  Misses            4149     4149           
  Partials            16       16           

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 53ce749...795fb94. Read the comment docs.

@@ -4,7 +4,7 @@
</div>
<div class="ui {{if this.device.isMobile 'horizontal'}} three statistics">
<div class="statistic"><div class="value">{{this.totalOrders}}</div><div class="label">{{t 'Orders'}}</div></div>
<div class="statistic"><div class="value">{{round this.totalAmount decimals=2}}</div><div class="label">{{t 'Sales'}}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}}</div></div>
<div class="statistic"><div class="value">{{if this.totalAmount (round this.totalAmount decimals=2) '0.00'}}</div><div class="label">{{t 'Sales'}}{{#if this.totalAmount}}({{currency-symbol this.model.eventDetail.paymentCurrency}}){{/if}}</div></div>
Copy link
Member

@iamareebjamal iamareebjamal Nov 27, 2020

Choose a reason for hiding this comment

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

Revert please. Another PR is handling this

@iamareebjamal iamareebjamal merged commit 6924ac0 into fossasia:development Nov 27, 2020
@sachinchauhan2889 sachinchauhan2889 deleted the fix-donation-ticket-sale branch November 27, 2020 16:37
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.

Organizer Orders Overview: Paid Donation Tickets show up as zero
3 participants