question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve handling of `refunded` invoice in invoices, invoice details and invoice export.

See original GitHub issue

Currently, if an invoice is refunded:

  • It’s not visible in invoice export as refunded it’s settled the amount is in +, which can lead to accounting problems.
  • In invoices view you cannot distinguish refunded invoices, they say settled so it’s hard for a merchant to pick a particular invoice that may need to be refunded or view a refunded one as they’re all settled
  • In the invoice details there’s no field indicating an invoice is refunded in any way
  • In invoice details there’s no indicator of the refunded amount , and you can even click issue a refund on an invoice already refunded.

This is an example of an invoice detail of an already refunded invoice. Screenshot 2022-03-31 at 16 11 47 This invoices view shows 3 invoices as settled, all of them refunded Screenshot 2022-03-31 at 20 08 43 And most problematic of all, this is an invoice export containing reporting for refunded invoices

Screenshot 2022-03-31 at 20 10 30

This issue can potentially be broken down into several issues, but for now we’ll use it as a tracker

  • Add refunded invoices in invoice export and show refunded amount
  • Add refunded label in invoices page view to distinguish easier refunded from settled.
  • Add indicator that invoice is refunded in invoice details and don’t show issue a refund button, instead show preview a refund

Luckily we log in refunded in database, but we don’t show it in the UI, show a fix for all of these shouldn’t be that hard as @Kukks pointed out. I had an idea of introducing refunded and refunded-partial status, but Kukks was against it.

Thanks to Bas for pointing majority of these problems, I’m just logging an issue.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
rustywavecommented, Jul 19, 2022

Update from dev call 7/19: We will go with option 2 – listing all payments and pull payments

1reaction
rustywavecommented, Sep 19, 2022

@pavlenex, sorry for being MIA! i won’t be able to finish this or any others at this time. update is partway done but there are still some clarifications needed on which are the correct fields to use. i can either create a PR or push my changes to a remote branch for the next person to review.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invoices Exports
This is the invoice origin. The original invoice will have a type of 'purchase'. Any refunds or voids will create a negative invoice...
Read more >
Recurly's Credit Invoices Helps Billing & Accounting
The Credit Invoices feature provides new, automated workflows which improve the subscriber experience.
Read more >
Refund Invoice Payment Data Source
Use this data source to export information from Refund Invoice Payment and associated Invoices, Payments, and Accounts.
Read more >
Managing the invoice list - Brightly's Online Help
You can search and filter your invoice list to show a specific invoice, edit, share, pay, and archive invoices, and export invoices based...
Read more >
Issue Refunds for Member Payments
Refund Invoice Payments (web). Click the Invoicing tab. Click the batch title where the payment to be refunded is located or hover over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found