effective_events 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbb3a8a1227396c83975ab41899ed1a2989d69856e0b81181fae9104fef9f29f
|
4
|
+
data.tar.gz: 3151268c53678a8f649858ca22bb16c3c667f3fa5cade1451670eb193759c6c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61f5cf951a66616f3c206938577a001bc8dafe13ab7b8472302f7f80bfdeb7ab7ccea0aaadf271bb4b637e43d81d9f7351caa837dba61996e0d250c2e8dd4518
|
7
|
+
data.tar.gz: 3fcfd0cc88b095bbf310fc115de7467126127dda94fea88701d2d1a78f61b370da0c1d809ded9b8dd5fa6ed712b6cc29583722c13370e85325d6f5c5ec03b06e
|
@@ -124,23 +124,19 @@ module EffectiveEventsEventRegistration
|
|
124
124
|
event&.event_products.present? ? wizard_step_keys : (wizard_step_keys - [:addons])
|
125
125
|
end
|
126
126
|
|
127
|
+
def find_or_build_submit_fees
|
128
|
+
with_outstanding_coupon_fees(submit_fees)
|
129
|
+
end
|
130
|
+
|
127
131
|
# All Fees and Orders
|
128
132
|
def submit_fees
|
129
|
-
if
|
133
|
+
if defined?(EffectiveMemberships)
|
130
134
|
(event_registrants + event_addons + fees)
|
131
135
|
else
|
132
136
|
(event_registrants + event_addons)
|
133
137
|
end
|
134
138
|
end
|
135
139
|
|
136
|
-
def apply_outstanding_coupon_fees
|
137
|
-
return unless owner.respond_to?(:outstanding_coupon_fees)
|
138
|
-
|
139
|
-
Array(owner.outstanding_coupon_fees).each { |fee| fees << fee unless fees.include?(fee) }
|
140
|
-
|
141
|
-
fees.select { |fee| fee.try(:coupon_fee?) }
|
142
|
-
end
|
143
|
-
|
144
140
|
def after_submit_purchased!
|
145
141
|
notifications = event.event_notifications.select(&:registrant_purchased?)
|
146
142
|
notifications.each { |notification| notification.notify!(event_registrants: event_registrants) }
|