#ibgoldbergs

1 messages · Page 1 of 1 (latest)

vast jackalBOT
rancid kernel
#

There's also a pre_payment_credit_notes_amount, so you can use both to calculate the difference

delicate rune
#

So in an upgrade scenario, should I always consider credit?

#

and in a downgrade scenario, I should show:
(post_payment_credit_notes_amount)
?

#

does that sound right?

rancid kernel
#

Correction -> you should check pre_payment_credit_notes_amount because the upcoming invoice is not yet paid.

delicate rune
#

So in both scenarios we should show the final amount by

Total - pre_payment_credit_notes_amount?

rancid kernel
#

You can just use amount_due

delicate rune
#

oh

#

so if somebody downgrades from Premium to Starter then amount due would likely just show $0?

#

given we use always_invoice

rancid kernel
#

In most cases yes.

delicate rune
#

Thanks for the help, I think I get it