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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f488468a3b69e4a27114ae0e750323cd22432947
4
- data.tar.gz: 778f25c966bb47aac7a644753b2cb425ef4667fb
3
+ metadata.gz: 1872d44af69fb757a71703d56ca48d5398b29b02
4
+ data.tar.gz: 550e1d2c2ac82b1a51a0c3365863143081a06c87
5
5
  SHA512:
6
- metadata.gz: 12c24910a1576d076b7a6893a74c5892348443ed1aa52c9fd75d7ce1bb713ff026450ff6f423c1d1d5875403a566e408bf5840b6f3db4e9e0b840686b4f3fd78
7
- data.tar.gz: b6e90012affd32d1e4e7cc2da27c6d8af10ff33434690983c5add0d97ce3f6829aafad508617543b32c32011119d045ec758d3d6b6a84d237f738c625be777d7
6
+ metadata.gz: b4c426b09a8dd6318fd53e4fcfceac0b48b2c7cf9404483caef975fa94eb6b50f8525b6a64014d5af8d0c23cc1e1e607d259efe42898a56a419538e48664b8d6
7
+ data.tar.gz: 48076ed43a488d8a8f740b92de3374d39dbccb41901f1d7f3cd23e4d2c8e976dc5e529b8e3597422ac931cc2bada44f0e8215e2ef0f3b5f36436d0fac2e6ae27
@@ -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']
@@ -1,3 +1,3 @@
1
1
  module Magelex
2
- VERSION = "0.1.8".freeze
2
+ VERSION = "0.1.9".freeze
3
3
  end
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.8
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-18 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2