#mattia_api

1 messages ยท Page 1 of 1 (latest)

fresh shadowBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1369718974627184742

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

azure rampart
#

Hi! I think this might be a bug. Let me dig.

#

I think I'm wrong. ๐Ÿ˜‚

#

amount_due - amount_paid = amount_remaining if positive, else amount_overpaid

#

Does that make sense? Like, If I invoice you $100, $100 is due to me. If you pay it, that $100 is still due to me, it just so happens that you've paid me $100 to offset that - but the invoice's 'due amount' - its total - was, and still is, $100.

fresh shadowBOT
tiny edge
azure rampart
#

Yes. "Original Invoice Total" if you will.

tiny edge
#

It doesn't really make sense considering Stripe dashboard shows "Amount Due" to 0

tiny edge
#

Let's assume I apply a credit note to the invoice, how do I know what's left to pay after the credit was applied?

azure rampart
#

amount_outstanding would be where you want to look.

#

I agree amount_due is maybe not the best name for what is essentially the 'original invoice amount' that at this point.