-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Added refund fields to invoice export #3968
Added refund fields to invoice export #3968
Conversation
Only first refund is included, if available
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 start, but:
- You need to also check the payouts inside the pull payment and see if the refund has been done. You can use
var progress = pullPaymentHostedService.CalculatePullPaymentProgress(pp, DateTimeOffset.UtcNow);
to get the amount refunded so far: var remaining = progress.Limit - progress.Completed - progress.Awaiting;
Good call -- I actually did it that way because it looks like the invoice is tagged with |
Okay I think I need to add the refunds as separate line items -- you can have multiple payments but currently only one refund per invoice. It kind of doesn't make sense to add the refund as a column because refunds are not tied to payments. Will see what I can do here and reply back. |
This is indeed problematic. I think we need to rethink this.
The main problem is that the export is not of invoices, but of payments, so
refunds may not entirely make sense on that context. Perhaps a better
solution is a new export specifically around invoices
…On Fri, Jul 15, 2022, 00:10 rustywave ***@***.***> wrote:
Okay I think I need to add the refunds as separate line items -- you can
have multiple payments but currently only one refund per invoice. It kind
of doesn't make sense to add the refund as a column because refunds are not
tied to payments. Will see what I can do here and reply back.
—
Reply to this email directly, view it on GitHub
<#3968 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN357SJQRLSFO6JQEJN4STVUCF6FANCNFSM53P6PI2A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I started down the road of adding refunds as a separate line item but then realized refunds have multiple payouts (from your suggestion)...I think it makes sense to list payouts out if we are listing payments out. But I agree with your point -- this isn't exactly an invoice export now and it's probably best to clarify what is desired for this. |
Fields need to verified
Draft-only, will wait for feedback before proceeding.
Notes:
#3597