Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-12649

Restore the Select Discount Set option for back-office event registration when event has Discounts by Signup Date

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.9, 4.3.3
    • Fix Version/s: 4.3.4
    • Labels:
      None

      Description

      NOTE: This is a regression related to the implementation of quick-config price sets for 4.2.
      =============
      Prior to 4.2, if an event was configured with 'Discounts by signup date' - admins where able to select whether or not the discount was applied when registering participants via back-office form, regardless of the current date. This was done by including a 'Discount Set' dropdown in the form. The dropdown would default to the appropriate discount (or No discount) based on current date compared to discount set date range - AND allow admin to override that default. See screenshots from 4.1 attached.

      We need to restore that functionality for quick-config price-set based event discounts. We have retained the civicrm_discount table entries - which allow us to identify the related 'discount' price sets - and most of the code is still present in CRM_Event_Form_EventFees::buildQuickForm, but is bypassed since it's in the 'non price-set' section which is obsolete code AFAIK.

      This regression becomes critical for folks using pay-later. If an admin tries to edit a participant who registers with Pending Pay Later status AND has a fee belonging to a date-specific discount price set, they will be forced to charge the current fee (over-write the saved discounted fee) - since the discounted fee price fields are no longer available to the participant form. The fix to this should ensure that the originally used discount price set is loaded by setDefaults with the originally selected fee set as default value.

        Attachments

        1. EventDiscountSet_41.PNG
          50 kB
          David Greenberg
        2. Participant_DiscountSetMissing_43.PNG
          59 kB
          David Greenberg
        3. Participant_w_DiscountSet_41.PNG
          65 kB
          David Greenberg

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: