prici-io / prici

manage plans and pricing for any SaaS application
https://prici.io
MIT License
37 stars 5 forks source link

feat: as a user with multiple account-plans, feature credits should be spread from all plans. #21

Open davidmeirlevy opened 6 months ago

davidmeirlevy commented 6 months ago

let's say there's a user with multiple plans:

  1. a monthly plan with 100 credits of some feature.
  2. a "credits" plan with no-renewal.

when the user uses the feature, the increment should first come from the monthly package, and only when it's over - it should use the credits plan first.

same as when the user has multiple renewal plans - when it comes to a first plan limit - the counter should increment the second plan, and so on.