magelex 0.1.8 → 0.1.9
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/lib/magelex/magento_csv.rb +2 -2
- data/lib/magelex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1872d44af69fb757a71703d56ca48d5398b29b02
|
|
4
|
+
data.tar.gz: 550e1d2c2ac82b1a51a0c3365863143081a06c87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4c426b09a8dd6318fd53e4fcfceac0b48b2c7cf9404483caef975fa94eb6b50f8525b6a64014d5af8d0c23cc1e1e607d259efe42898a56a419538e48664b8d6
|
|
7
|
+
data.tar.gz: 48076ed43a488d8a8f740b92de3374d39dbccb41901f1d7f3cd23e4d2c8e976dc5e529b8e3597422ac931cc2bada44f0e8215e2ef0f3b5f36436d0fac2e6ae27
|
data/lib/magelex/magento_csv.rb
CHANGED
|
@@ -41,10 +41,10 @@ module Magelex
|
|
|
41
41
|
|
|
42
42
|
bill.shipping_cost = row['Order Shipping']
|
|
43
43
|
if (12.59..12.61).include? bill.shipping_cost
|
|
44
|
-
Magelex::logger.info "Correcting shipping cost of #{bill.order_nr} (12.6 -> 15 / 1.19 €)"
|
|
44
|
+
Magelex::logger.info "Correcting shipping cost of #{bill.order_nr} (12.6 -> 15 / 1.19 €)" if bill.complete?
|
|
45
45
|
bill.shipping_cost = 15 / 1.19
|
|
46
46
|
elsif bill.shipping_cost == 4.15
|
|
47
|
-
Magelex::logger.info "Correcting shipping cost of #{bill.order_nr} (4.15 -> 4.95 / 1.19 €)"
|
|
47
|
+
Magelex::logger.info "Correcting shipping cost of #{bill.order_nr} (4.15 -> 4.95 / 1.19 €)" if bill.complete?
|
|
48
48
|
bill.shipping_cost = 4.95 / 1.19
|
|
49
49
|
end
|
|
50
50
|
bill.total = row['Order Grand Total']
|
data/lib/magelex/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: magelex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Felix Wolfsteller
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mysql2
|