#samctrumpet

1 messages · Page 1 of 1 (latest)

crystal nestBOT
limber hornet
#

Hi there!

#

Can you share the invoice ID (in_xxx)?

lusty aurora
#

Hey Soma, sure, its in_1MPNWDEd9EoYxQjHhbsJkAZZ

limber hornet
#

Thanks! Give me a few minutes to look into this.

#

So I see two invoice item:

  • Remaining time on xxx => £4,113
  • Unused time on yyy => -£3,658
    What exactly where you expecting to see instead?
lusty aurora
#

The new invoice doesn't include the 4.63% discount on the initial invoice

#

The price for a user is £29

#

We noticed the new difference was a lot higher than it should be.

#

And realised that the discount is not considered when the new invoice was generated.

slender oriole
#

yeah proration with discounts are complicated, I don't really have a solid grasp on the model myself. I think it's that the amount prorated is based on the amount the customer actually paid(after discounts), not the base amount of the Price.

#

the docs also mention

any existing discounts are applied when proration is calculated. You can’t discount proration line items further on the invoice that’s generated.

lusty aurora
#

Yeah but the problem is that this hasn't happened. It has generated the new invoice on the base price rather than the discounted price.

#

It must be a bug then on Stripes side if the intention is to include the discount on the proration

slender oriole
#

I don't think it's a bug, it's just the proration + discounts is complicated and often works differently than you might expect

mental mesa
#

I get that it's complicated, but the pro-ration effectively just removed the discount

slender oriole
lusty aurora
#

Thanks Karl!