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

Cron can renew services when not all invoices are paid

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.6.0
    • Fix Version/s: 4.0.0-b1
    • Component/s: None
    • Labels:
      None
    • Environment:

      emphasized text

      Description

      The method Services::getAllRenewablePaid is used by cron to fetch services that will then be renewed by contacting the module to renew them.

      However, the current behavior of fetching the renewable paid services is to fetch all services that have ANY invoice paid since the last time it was checked. This is problematic, for instance, if someone buys and pays for a configurable option. The invoice for the configurable option will be paid, marking the invoice closed, and although there may be other open invoices for the service, it can be returned by Services::getAllRenewablePaid since there is a recent paid invoice.

      The new behavior should be to only return services from Services::getAllRenewablePaid that have ALL of their active/proforma invoices closed, i.e., there are no open invoices for the service.

        Issue Links

          Activity

          tyson Tyson Phillips (Inactive) created issue -
          tyson Tyson Phillips (Inactive) made changes -
          Field Original Value New Value
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Duplicate [ 3 ]
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue duplicates CORE-2167 [ CORE-2167 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Sep/16