spree_emails 4.3.0.rc3 → 4.3.0

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: 20f153ac233e20ba501329d01f8959933865b5a1edcfcbc53449e9f49c6b6b22
4
- data.tar.gz: 72385d43ab4b9866f32271bd55958af2b8b8f1706b9a4383550cc3c8f6111ed2
3
+ metadata.gz: c2f8f96b6929bc7d8bb27d64f35a0c6eaedeaf609021346541591cc2124b3edf
4
+ data.tar.gz: 63f0b0ee3ca580e96f5632b16883d5522c9a882ed762c121421cd0516cb94610
5
5
  SHA512:
6
- metadata.gz: ea893d89d2ffd5accebec16c996f6ba2fa3808d82c91af69a85585a5b8d1cefe8b11c168770d270fab9cca2124baaed7c5aedfaead4f4d3e255e3717c7eb3136
7
- data.tar.gz: bb6b1e43229d6008ca9b1fb1ac5c6c959a8178503ac8af11f6146abdddc0216bc8dece51baeff543f3b88cd2237cd6731385c2685a11ef04c1a6cc447075686b
6
+ metadata.gz: 18d6411072b4c6be503c1782a6b9c3186affa4c11e9d56231285ac9a8ee08461fd0cff7b45b025a5a9e918bbc1b39384ef1b51d5e6fad0130c03080a2ce05040
7
+ data.tar.gz: b5c45b9219e4753ca3a690038264799628a92bfb75189af9564e3c7071a489d81076911c2d0d4ab909427179e7bfcb6a59ba1ec8d1f539b2b437f6abd233620e
@@ -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 %>
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.0.rc3
4
+ version: 4.3.0
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: 2021-08-30 00:00:00.000000000 Z
12
+ date: 2021-09-14 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.0.rc3
20
+ version: 4.3.0
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.0.rc3
27
+ version: 4.3.0
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.0.rc3
137
+ changelog_uri: https://github.com/spree/spree/releases/tag/v4.3.0
137
138
  documentation_uri: https://dev-docs.spreecommerce.org/
138
- source_code_uri: https://github.com/spree/spree/tree/v4.3.0.rc3
139
+ source_code_uri: https://github.com/spree/spree/tree/v4.3.0
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.3
155
+ rubygems_version: 3.1.4
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: Transactional emails for Spree eCommerce platform