spree_elta_courier 1.2.5 → 1.2.7
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 +4 -4
- data/app/controllers/spree/admin/elta_courier_controller.rb +1 -2
- data/app/javascript/spree_elta_courier/application.js +2 -2
- data/app/views/spree/admin/integrations/forms/_elta_courier.html.erb +1 -1
- data/app/views/spree_elta_courier/_order_dropdown_options.html.erb +5 -5
- data/config/locales/el.yml +5 -5
- data/config/locales/en.yml +5 -5
- data/lib/spree_elta_courier/engine.rb +3 -1
- data/lib/spree_elta_courier/version.rb +1 -1
- metadata +4 -4
- /data/app/javascript/spree_elta_courier/controllers/{elta_courier_controller.js → spree_elta_courier_controller.js} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abc99c8ef73aaff62ea19b694ed8519c074e1905bf006a845ae7fc681747e901
|
|
4
|
+
data.tar.gz: 6bc90809f35ad06e6473da8b9e958c2923fd123fb7d35b025f26cdd99e91d364
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48cdc613c647b1481ebd8e6f109d8b464b18aecc1d01711b4582e3120733a83d4602f5ed1fb93f97106bff8b86884a583a45472716b14611377db36cdc214fe4
|
|
7
|
+
data.tar.gz: b90322208a27953debf5f9454f21ca264ed7eda3a109333172b37eb69f53a4e283a53eeef4a237d9010ad2b0d97c8f99f0068723fa5644e76eba36eabde02d29
|
|
@@ -38,10 +38,9 @@ module Spree
|
|
|
38
38
|
load_order
|
|
39
39
|
|
|
40
40
|
shipments = @order.shipments.select(&:can_print_voucher?)
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
voucher_numbers = shipments.flat_map do |shipment|
|
|
43
43
|
vg_child = shipment.private_metadata['elta_courier.vg_child'] || []
|
|
44
|
-
|
|
45
44
|
[shipment.tracking] + vg_child
|
|
46
45
|
end
|
|
47
46
|
|
|
@@ -11,6 +11,6 @@ if (typeof window.Stimulus === "undefined") {
|
|
|
11
11
|
application = window.Stimulus
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
import
|
|
14
|
+
import SpreeEltaCourierController from 'spree_elta_courier/controllers/spree_elta_courier_controller'
|
|
15
15
|
|
|
16
|
-
application.register('elta-courier',
|
|
16
|
+
application.register('spree-elta-courier', SpreeEltaCourierController)
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<%= preference_field(@integration, form, 'password', i18n_scope: 'admin.integrations.elta_courier') %>
|
|
8
8
|
|
|
9
9
|
<div class="form-group">
|
|
10
|
-
<%= form.spree_select :preferred_paper_size, options_for_select([['A4', '0'], ['A6', '1']], @integration.preferred_paper_size), label: Spree.t('admin.integrations.elta_courier.
|
|
10
|
+
<%= form.spree_select :preferred_paper_size, options_for_select([['A4', '0'], ['A6', '1']], @integration.preferred_paper_size), label: Spree.t('admin.integrations.elta_courier.paper_size') %>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
</div>
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<button
|
|
4
4
|
type="button"
|
|
5
5
|
class='btn text-left dropdown-item'
|
|
6
|
-
data-controller='elta-courier'
|
|
7
|
-
data-action='elta-courier#createVoucher'
|
|
8
|
-
data-elta-courier-order-id-value='<%= @order.id %>'
|
|
9
|
-
data-elta-courier-create-voucher-prompt-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_prompt') %>"
|
|
10
|
-
data-elta-courier-create-voucher-error-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_error') %>">
|
|
6
|
+
data-controller='spree-elta-courier'
|
|
7
|
+
data-action='spree-elta-courier#createVoucher'
|
|
8
|
+
data-spree-elta-courier-order-id-value='<%= @order.id %>'
|
|
9
|
+
data-spree-elta-courier-create-voucher-prompt-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_prompt') %>"
|
|
10
|
+
data-spree-elta-courier-create-voucher-error-value="<%= Spree.t('admin.integrations.elta_courier.create_voucher_error') %>">
|
|
11
11
|
<%= icon 'package' %>
|
|
12
12
|
<%= Spree.t('admin.integrations.elta_courier.create_voucher') %>
|
|
13
13
|
</button>
|
data/config/locales/el.yml
CHANGED
|
@@ -6,11 +6,11 @@ el:
|
|
|
6
6
|
elta_courier:
|
|
7
7
|
title: ΕΛΤΑ Courier
|
|
8
8
|
description: Διασύνδεση με τις υπηρεσίες της ΕΛΤΑ Courier
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
wsdl_url: WSDL URL
|
|
10
|
+
customer_code: Customer Code
|
|
11
|
+
user_code: User Code
|
|
12
|
+
password: Password
|
|
13
|
+
paper_size: Μέγεθος Χαρτιού
|
|
14
14
|
create_voucher: Δημιουργία Voucher (Elta Courier)
|
|
15
15
|
print_voucher: Εκτύπωση Voucher (Elta Courier)
|
|
16
16
|
create_voucher_prompt: "Εισάγετε αριθμό δεμάτων (ανά Αποστολή):"
|
data/config/locales/en.yml
CHANGED
|
@@ -6,11 +6,11 @@ en:
|
|
|
6
6
|
elta_courier:
|
|
7
7
|
title: ΕΛΤΑ Courier
|
|
8
8
|
description: Elta Courier is a shipping integration for Greece
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
wsdl_url: WSDL URL
|
|
10
|
+
customer_code: Customer Code
|
|
11
|
+
user_code: User Code
|
|
12
|
+
password: Password
|
|
13
|
+
paper_size: Paper Size
|
|
14
14
|
create_voucher: Create Voucher (Elta Courier)
|
|
15
15
|
print_voucher: Print Voucher (Elta Courier)
|
|
16
16
|
create_voucher_prompt: "Enter the number of package (per Shipment):"
|
|
@@ -23,7 +23,9 @@ module SpreeEltaCourier
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
initializer 'spree_elta_courier.cache_sweeper', before: 'spree.admin.importmap.cache_sweeper' do |app|
|
|
26
|
-
app.config.
|
|
26
|
+
if app.config.importmap.sweep_cache && app.config.reloading_enabled?
|
|
27
|
+
app.config.spree_admin.cache_sweepers << root.join('app/javascript')
|
|
28
|
+
end
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def self.activate
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spree_elta_courier
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OlympusOne
|
|
@@ -120,7 +120,7 @@ files:
|
|
|
120
120
|
- app/assets/images/integration_icons/elta-courier-logo.png
|
|
121
121
|
- app/controllers/spree/admin/elta_courier_controller.rb
|
|
122
122
|
- app/javascript/spree_elta_courier/application.js
|
|
123
|
-
- app/javascript/spree_elta_courier/controllers/
|
|
123
|
+
- app/javascript/spree_elta_courier/controllers/spree_elta_courier_controller.js
|
|
124
124
|
- app/lib/elta_courier/soap_client.rb
|
|
125
125
|
- app/models/spree/integrations/elta_courier.rb
|
|
126
126
|
- app/models/spree/order_decorator.rb
|
|
@@ -150,10 +150,10 @@ licenses:
|
|
|
150
150
|
- AGPL-3.0-or-later
|
|
151
151
|
metadata:
|
|
152
152
|
bug_tracker_uri: https://github.com/olympusone/spree_elta_courier/issues
|
|
153
|
-
changelog_uri: https://github.com/olympusone/spree_elta_courier/releases/tag/v1.2.
|
|
153
|
+
changelog_uri: https://github.com/olympusone/spree_elta_courier/releases/tag/v1.2.7
|
|
154
154
|
documentation_uri: https://github.com/olympusone/spree_elta_courier
|
|
155
155
|
homepage_uri: https://github.com/olympusone/spree_elta_courier
|
|
156
|
-
source_code_uri: https://github.com/olympusone/spree_elta_courier/tree/v1.2.
|
|
156
|
+
source_code_uri: https://github.com/olympusone/spree_elta_courier/tree/v1.2.7
|
|
157
157
|
rdoc_options: []
|
|
158
158
|
require_paths:
|
|
159
159
|
- lib
|
|
File without changes
|