Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 4.6.0-b1
-
Component/s: None
-
Labels:None
Description
Currently, when an admin manually changes the renew date of a service, a prorated invoice is created for only the price of the package and does not include the cost of configurable options in the calculation. To recreate:
- Create a package for the none module with a pricing term of $1 for 1 month
- Create a checkbox config option and group with a pricing term of $1 for 1 month attached to that package
- Create a service using the package and add the checkbox config option, the total price will be $2
- Manage the service and use the 'change renew date' action.
- Set the renew date to half way between today and the renew date
- An credit will be created for ~$0.50 which is half of the package price, rather than ~$1 which would be half of the correct $2 total
It looks like service edit invoicing still uses package methods to calculate line items. Instead this should be changed to use the pricing presenter. Doing so would eliminate this issue.