Commit bfc204bf authored by agileware_pengyi's avatar agileware_pengyi

PROJ-1243 skip discount for events/memberships

parent 90608ff8
......@@ -138,6 +138,11 @@ class CRM_Discountcontributions_Contribute_Form_Contribution_Main {
foreach ($discounts as $discountID => $discount) {
$discountApplied = FALSE;
if (!empty($discount['events']) || !empty($discount['memberships'])) {
// this discount is for events/memberships and should not be used here
// FIXME show error?
continue;
}
$priceFields = isset($discount['pricesets']) ? $discount['pricesets'] : [];
foreach ($amounts as $fee_id => &$fee) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment