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] Remove draft payments from remaining payments count when calculating % successful payments #132

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

ziyliu
Copy link
Contributor

@ziyliu ziyliu commented Aug 8, 2024

When calculating the successful payments percentage, we need to remove draft payments count from the total payments count in the divisor.

for ex,
Screenshot 2024-08-10 at 8 17 06 AM
Screenshot 2024-08-10 at 8 17 19 AM

here, the DRAFT payment does not count towards the divisor, so the successful payment rate is 1/1 = 100%

Screenshot 2024-08-10 at 8 20 48 AM Screenshot 2024-08-10 at 8 20 57 AM

here, a READY payment is added to the divisor, so the successful payment rate is 1/2 = 50%

@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@ziyliu ziyliu marked this pull request as ready for review August 8, 2024 17:58
@stellar-jenkins
Copy link

Something went wrong with PR preview build please check

@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr132.previews.kube001.services.stellar-ops.com/

@ziyliu ziyliu requested a review from a team August 8, 2024 18:13
Copy link
Collaborator

@marcelosalloum marcelosalloum left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@ziyliu ziyliu merged commit 515cf32 into develop Aug 9, 2024
7 checks passed
@ziyliu ziyliu deleted the erica/sdp-1159 branch August 9, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants