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

Renewing services are invoiced for 2 month based on proration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.1, 4.3.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      Renewing services are being prorated as if they were being created.

      Starting on line 1393 in app/models/invoices.php there should be this code:

                      if ($i == 0
                          && ($dates = $this->Packages->getProrataDates(
                              $service->pricing_id,
                              $service->date_added . 'Z',
                              $service->date_renews . 'Z'
                          ))
                      ) {
      

      Change that to:

                      if ($i == 0
                          && $allow_pro_rata
                          && ($dates = $this->Packages->getProrataDates(
                              $service->pricing_id,
                              $service->date_added . 'Z',
                              $service->date_renews . 'Z'
                          ))
                      ) {
      

        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:
              4/Jan/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 31 minutes
              31m

                Agile