spree_emails 4.3.0.rc1 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/spree/shared/_purchased_items_table.text.erb +25 -0
- data/spree_emails.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e7e953cdfe380d9f970d9975e6e6bfda2b1b9d0216a62bfb0c517ac31a04a68
|
4
|
+
data.tar.gz: a0882b06c4a38ba77e37f413b1200ddaf04971b0546091258a9373153c5b435e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849d486bdac8af01ed01bf60a47d21a8640a7ab0e8db74825cd6cbe7ebccb340d2a54322d0a8146c9df8d33c6b1294e1d4a495a09a7d871a2bcd865317ccd486
|
7
|
+
data.tar.gz: a22f77d327fa5025229d17d75b365492a6ef58f4eed25a17cfe5f0383b7dedd1777a9588ae5994979ad1d4a4090759eb10315e28a798be56cdafd6a36ea1a2af
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<% line_items.each do |item| %>
|
2
|
+
<%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) <%= Spree.t('at_symbol') %> <%= item.single_money %> = <%= item.display_amount %>
|
3
|
+
<% end %>
|
4
|
+
============================================================
|
5
|
+
<%= Spree.t('order_mailer.subtotal') %> <%= order.display_item_total %>
|
6
|
+
<% if order.line_item_adjustments.exists? %>
|
7
|
+
<% if order.all_adjustments.promotion.eligible.exists? %>
|
8
|
+
<% order.all_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
|
9
|
+
<%= Spree.t(:promotion) %>: <%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
|
10
|
+
<% end %>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% order.shipments.group_by { |s| s.selected_shipping_rate.try(:name) }.each do |name, shipments| %>
|
15
|
+
<%= Spree.t(:shipping) %>: <%= name %> <%= Spree::Money.new(shipments.sum(&:discounted_cost), currency: order.currency) %>
|
16
|
+
<% end %>
|
17
|
+
|
18
|
+
<% if order.additional_tax_total != 0 %>
|
19
|
+
<%= Spree.t(:tax) %>: <%= order.display_additional_tax_total.to_html %>
|
20
|
+
<% end %>
|
21
|
+
|
22
|
+
<% order.adjustments.eligible.each do |adjustment| %>
|
23
|
+
<% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
|
24
|
+
<%= adjustment.label %> <%= adjustment.display_amount %>
|
25
|
+
<% end %>
|
data/spree_emails.gemspec
CHANGED
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.metadata = {
|
17
17
|
"bug_tracker_uri" => "https://github.com/spree/spree/issues",
|
18
18
|
"changelog_uri" => "https://github.com/spree/spree/releases/tag/v#{s.version}",
|
19
|
-
"documentation_uri" => "https://
|
19
|
+
"documentation_uri" => "https://dev-docs.spreecommerce.org/",
|
20
20
|
"source_code_uri" => "https://github.com/spree/spree/tree/v#{s.version}",
|
21
21
|
}
|
22
22
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_emails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.3.
|
4
|
+
version: 4.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Schofield
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-01-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: spree_core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 4.3.
|
20
|
+
version: 4.3.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 4.3.
|
27
|
+
version: 4.3.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: actionmailer
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- app/views/spree/shared/_base_mailer_stylesheets.html.erb
|
109
109
|
- app/views/spree/shared/_mailer_line_item.html.erb
|
110
110
|
- app/views/spree/shared/_purchased_items_table.html.erb
|
111
|
+
- app/views/spree/shared/_purchased_items_table.text.erb
|
111
112
|
- app/views/spree/shared/purchased_items_table/_adjustment.html.erb
|
112
113
|
- app/views/spree/shared/purchased_items_table/_line_item.html.erb
|
113
114
|
- app/views/spree/shared/purchased_items_table/_subtotal.html.erb
|
@@ -133,9 +134,9 @@ licenses:
|
|
133
134
|
- BSD-3-Clause
|
134
135
|
metadata:
|
135
136
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
136
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.
|
137
|
-
documentation_uri: https://
|
138
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.3.
|
137
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.1
|
138
|
+
documentation_uri: https://dev-docs.spreecommerce.org/
|
139
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.3.1
|
139
140
|
post_install_message:
|
140
141
|
rdoc_options: []
|
141
142
|
require_paths:
|
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
151
152
|
- !ruby/object:Gem::Version
|
152
153
|
version: 1.8.23
|
153
154
|
requirements: []
|
154
|
-
rubygems_version: 3.2.
|
155
|
+
rubygems_version: 3.2.22
|
155
156
|
signing_key:
|
156
157
|
specification_version: 4
|
157
158
|
summary: Transactional emails for Spree eCommerce platform
|