effective_events 2.27.0 → 2.28.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65a88e5d6206066769f73981314e721330bf383d56aa44eb47cb0efeb4e4b3c3
|
4
|
+
data.tar.gz: e2b2e3a956bf3eaaaa1feaa2fdacc1e62ba0e273a2cc2361e11952b0259926c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69dc5d4580c987c69198815e019180baedcec93657462f989574d9b9461bb8b08954e78e5936c65ed77e24be770c6575d2039ab54f78d5f6d5bdc583012dace5
|
7
|
+
data.tar.gz: 658199605d4c9926620ab684556f073ae6730fe25a582bfdcf2cb66efd6856718ded8940028602245be1c306fc688f02567b97b68db29aa42ee3d0b85a7aff92
|
@@ -24,13 +24,14 @@ module Effective
|
|
24
24
|
|
25
25
|
@event_registration = resource
|
26
26
|
@event = resource.event
|
27
|
-
@event_registrants = resource.event_registrants
|
28
|
-
@event_addons = resource.event_addons
|
29
27
|
|
30
|
-
|
28
|
+
@order = @event_registration.submit_order
|
29
|
+
raise('expected an event registration submit_order') unless @order.present?
|
30
|
+
|
31
|
+
subject = subject_for(__method__, "Confirmation - #{@event}", resource, opts)
|
31
32
|
headers = headers_for(resource, opts)
|
32
33
|
|
33
|
-
mail(to: resource.owner.email, subject: subject, **headers)
|
34
|
+
mail(to: resource.owner.email, cc: mailer_admin, subject: subject, **headers)
|
34
35
|
end
|
35
36
|
|
36
37
|
# Sent manually by an admin to one registrant
|
@@ -41,10 +42,10 @@ module Effective
|
|
41
42
|
@event = resource.event
|
42
43
|
@event_registration = resource.event_registration # Optional
|
43
44
|
|
44
|
-
subject = subject_for(__method__, "
|
45
|
+
subject = subject_for(__method__, "Confirmation - #{@event}", resource, opts)
|
45
46
|
headers = headers_for(resource, opts)
|
46
47
|
|
47
|
-
mail(to: resource.email, subject: subject, **headers)
|
48
|
+
mail(to: resource.email, cc: mailer_admin, subject: subject, **headers)
|
48
49
|
end
|
49
50
|
|
50
51
|
protected
|
@@ -229,7 +229,7 @@ module EffectiveEventsEventRegistration
|
|
229
229
|
notifications = event.event_notifications.select(&:registrant_purchased?)
|
230
230
|
notifications.each { |notification| notification.notify!(event_registrants: event_registrants) }
|
231
231
|
|
232
|
-
send_event_registration_confirmation! unless submit_order&.delayed?
|
232
|
+
send_event_registration_confirmation! unless submit_order&.delayed? || submit_order&.deferred?
|
233
233
|
end
|
234
234
|
end
|
235
235
|
|
@@ -19,35 +19,83 @@
|
|
19
19
|
|
20
20
|
%hr
|
21
21
|
|
22
|
-
-
|
23
|
-
|
24
|
-
%
|
25
|
-
%thead
|
26
|
-
%tr
|
27
|
-
%th{style: "text-align: left;"} Qty
|
28
|
-
%th{style: "text-align: left;"} Ticket
|
29
|
-
%th{style: "text-align: right;"} Price
|
30
|
-
%tbody
|
31
|
-
- Array(@event_registrants).each do |er|
|
22
|
+
.effective-order
|
23
|
+
%table.table{style: "margin-bottom: 20px;"}
|
24
|
+
%thead
|
32
25
|
%tr
|
33
|
-
%
|
34
|
-
%
|
35
|
-
|
36
|
-
= er.responses if responses
|
37
|
-
%td{style: "text-align: right;"}= price_to_currency(er.price)
|
26
|
+
%th{style: "text-align: left;"} Qty
|
27
|
+
%th{style: "text-align: left;"} Ticket
|
28
|
+
%th{style: "text-align: right;"} Price
|
38
29
|
|
39
|
-
|
30
|
+
%tbody
|
31
|
+
- @order.order_items.each do |oi|
|
32
|
+
%tr
|
33
|
+
%td{style: "text-align: left;"}= oi.quantity
|
34
|
+
%td{style: "text-align: left;"}
|
35
|
+
= oi.to_s.html_safe
|
36
|
+
= oi.purchasable.try(:responses) || oi.purchasable.try(:notes)
|
37
|
+
%td.price= price_to_currency(oi.price)
|
38
|
+
|
39
|
+
%tfoot
|
40
|
+
%tr
|
41
|
+
%td{colspan: 3}= " ".html_safe
|
40
42
|
%tr
|
41
|
-
%
|
42
|
-
|
43
|
-
|
44
|
-
=
|
45
|
-
|
43
|
+
%th.subtotal{colspan: 2}
|
44
|
+
Subtotal
|
45
|
+
%td.price.subtotal-price
|
46
|
+
= price_to_currency(@order.subtotal)
|
47
|
+
|
48
|
+
- if @order.tax_rate.blank?
|
49
|
+
-# Nothing to do. We can't display Tax, Total or Credit Card Surcharge (which is taxed) yet.
|
50
|
+
|
51
|
+
- elsif @order.tax_rate.present? && @order.surcharge_percent.to_f > 0.0
|
52
|
+
%tr
|
53
|
+
%th.tax{colspan: 2}
|
54
|
+
Tax (#{rate_to_percentage(@order.tax_rate)})
|
55
|
+
%td.price.tax-price
|
56
|
+
= price_to_currency(@order.tax)
|
57
|
+
|
58
|
+
%tr
|
59
|
+
%th.amount-owing{colspan: 2}
|
60
|
+
Amount owing before Credit Card Processing Fee
|
61
|
+
%td.price.amount-owing-price
|
62
|
+
= price_to_currency(@order.amount_owing)
|
63
|
+
|
64
|
+
%tr
|
65
|
+
%th.surcharge{colspan: 2}
|
66
|
+
Credit Card Processing Fee (#{rate_to_percentage(@order.surcharge_percent)}) on #{price_to_currency(@order.amount_owing)}
|
67
|
+
%td.price.surcharge-price
|
68
|
+
= price_to_currency(@order.surcharge)
|
69
|
+
|
70
|
+
%tr
|
71
|
+
%th.surcharge-tax{colspan: 2}
|
72
|
+
Tax (#{rate_to_percentage(@order.tax_rate)}) on Credit Card Processing Fee
|
73
|
+
%td.price.surcharge-tax-price
|
74
|
+
= price_to_currency(@order.surcharge_tax)
|
75
|
+
|
76
|
+
%tr
|
77
|
+
%th.total{colspan: 2}
|
78
|
+
Total amount charged to credit card
|
79
|
+
%td.price.total-price
|
80
|
+
= price_to_currency(@order.total)
|
81
|
+
|
82
|
+
- elsif @order.tax_rate.present? && !(@order.surcharge_percent.to_f > 0.0)
|
83
|
+
%tr
|
84
|
+
%th.tax{colspan: 2}
|
85
|
+
Tax (#{rate_to_percentage(@order.tax_rate)})
|
86
|
+
%td.price.tax-price
|
87
|
+
= price_to_currency(@order.tax)
|
88
|
+
|
89
|
+
%tr
|
90
|
+
%th.total{colspan: 2}
|
91
|
+
Total
|
92
|
+
%td.total-price
|
93
|
+
= price_to_currency(@order.total)
|
46
94
|
|
47
95
|
%hr
|
48
96
|
|
49
97
|
%p{style: "text-align: center;"}
|
50
|
-
- if @event.delayed_payment?
|
98
|
+
- if @event.delayed_payment? && @order.delayed? && @order.deferred?
|
51
99
|
= link_to('View or modify your registration', effective_events.event_event_registration_url(@event, @event_registration))
|
52
100
|
- else
|
53
101
|
= link_to('View your registration', effective_events.event_event_registration_url(@event, @event_registration))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.28.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|