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

Allow negative amounts for price set fields / options

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.1
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      As discussed in this forum post, there are cases where it's useful to create price set fields and / or field options with negative amounts:
      http://forum.civicrm.org/index.php/topic,9594.0.html

      1. Modify form rules for adding / editing price set fields and options to allow input of negative numbers.
      1a. Add explanatory text to price set field help: "You may enter a negative amount value if the field or option is being used to discount the total event price."

      2. Add form rule to online event registration form (Event/Form/Registration/Register) to prevent user from submitting if TOTAL of price set amounts is < 0.

      3. Add form rule for backoffice event registration to prevent user from submitting if TOTAL of price set amounts is < 0 AND the we are in "credit card transaction" mode. (i.e. allow negative total amount if we are NOT submitting the transaction to a payment processor).

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: