Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3088

Renew date change proration ignores config options

    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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/May/19

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 4 hours, 6 minutes
              4h 6m

                Agile