New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Upgrade/downgrade price calculation nuance
I came upon interesting problem. WHMCS upgrade price calculation formula:
- Old product: Price Per Day * Number of days until next due date = Amount Credited
- New product: Price Per Day * Number of days until next due date = Amount Debited
- Total Payable For Upgrade = Amount Debited - Amount Credited
Now assume this scenario:
Product: 1 adult film disc rent (mildcore rated)
Price per month: 8.99 USD
Lease period: 3 months
Discount: 0%
Customer want to upgrade product to this:
Product: 1 adult film disc rent (hardcore rated)
Price per month: 12.99 USD
Lease period: 3 months
Discount: 3%
Can some one provide human readable format of WHMCS formula with given scenario? I have doubt that upgrade price drifts and is not what it should be.


Comments
I have personally encountered a similar (if not the same issue) and raised it with WHMCS previously via ticket. They confirmed it's a minor flaw in their assumptions but generally works fine so they have no plans to change it.
It may be better if you give us some exact numbers on the number of days WHMCS is showing as being remaining on the term and also, what values you're getting.
I know there's definitely a logic flaw in their credit calculation if the customer has upgraded mid-billing cycle and then upgrade again mid-billing cycle because at the 2nd pro-rata upgrade WHMCS assumes incorrectly they had previously paid the CURRENT renewal rate since their last renewal date when they didn't - they only paid a pro-rata portion of it. It's very confusing so if you don't understand what I've just written I wouldn't be surprised haha. But just know, WHMCS's stance on it is (and I'm quoting here) "I do appreciate the point you are making. However, WHMCS is acting as designed".