Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Amount type "Monetary" ignored #4

Closed
axon-obriend opened this issue Aug 9, 2012 · 1 comment
Closed

Amount type "Monetary" ignored #4

axon-obriend opened this issue Aug 9, 2012 · 1 comment

Comments

@axon-obriend
Copy link

Got the latest CiviDiscount last night (Aug 8) and installed. I'm using CiviCRM 4.2beta4 on Drupal 7.
I have created an automatic discount, which is given to people who are registering for an event and who have an active membership.
The discount is displayed correctly in the listing, but when I register for an event, the discount is given as a percentage of the base amount, not as a dollar amount discount.

On line 809 of cividiscount.php

if ( $code['amount_type'] == 'M' ) {

should be

if ( $code['amount_type'] == '2' ) {

@dlobo
Copy link

dlobo commented Sep 21, 2012

this has now been fixed on master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants