effective_qb_online 0.9.1 → 0.9.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4488d56d5068d5f8c1cefc908bde3eba546a9c55135c257100c1e791f50684a
|
|
4
|
+
data.tar.gz: 282e77a11fbf23333e42e071bcbf7d57481094db7a2001887c083e06d0830b28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e507c49b0b77c38e68ae1b54a6dab1407ab2f5e4874d809067c3bd31ef67025fe4be9f58cbaa44fdfb70597f40e5099409737548efbdedcbf7011e5bc453e4f
|
|
7
|
+
data.tar.gz: 88cfb715ebb5bac1049ffe7c207ae7ccc1e501dc43751e3c5f0f3a8fd988f906708709581733acdc86b2c6026fd1d345b43ecbe368ced2407a44d47214f7f745
|
|
@@ -74,7 +74,7 @@ module Effective
|
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
if EffectiveOrders.try(:credit_card_surcharge_qb_item_name).present? && EffectiveOrders.try(:fee_saver?)
|
|
77
|
-
if (expected = api.price_to_amount(order.amount_owing
|
|
77
|
+
if (expected = api.price_to_amount(order.amount_owing + order.surcharge.to_i)) != sales_receipt.total
|
|
78
78
|
raise("A QuickBooks Online Sales Receipt has been created with an unexpected total. QuickBooks total is #{sales_receipt.total} but we expected #{expected}. Please adjust the Sales Receipt on QuickBooks")
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -135,7 +135,7 @@ module Effective
|
|
|
135
135
|
if EffectiveOrders.try(:fee_saver?) && EffectiveOrders.try(:credit_card_surcharge_qb_item_name).present? && order.try(:surcharge).to_i != 0
|
|
136
136
|
raise("Expected a Credit Card Surcharge QuickBooks item to exist for Effective::Order #{order.id} with non-zero surcharge amount. Please check your configuration.") unless surcharge_item.present?
|
|
137
137
|
|
|
138
|
-
amount = api.price_to_amount(order.surcharge
|
|
138
|
+
amount = api.price_to_amount(order.surcharge)
|
|
139
139
|
|
|
140
140
|
line_item = Quickbooks::Model::Line.new(amount: amount, description: 'Helcim Convenience Fee')
|
|
141
141
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_qb_online
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-02-
|
|
11
|
+
date: 2026-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|