effective_qb_online 0.6.0 → 0.6.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: 4f62dccc91223b3a392121d17144aa8dd07a8b1ade5536f4b03cb4743451143e
|
4
|
+
data.tar.gz: 30149c1bc4592e6da477d6e68424d9f148665275215a9e7751882b1a6aac89b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6bf08ef6708280f6250d00608582b1f2e6e0f9686ae7b9a370ccdfcfc69f463987e480c50ab412587dc0cdf608567e8ad71e460c7f05ae98fa8495ce2758af3
|
7
|
+
data.tar.gz: 644968d67ba6ded4151cd5050b51e185e866f6b410307277df6881c87b97071dea0c784b0c2402ee916fbf0f644f4346a74cc6f01645a77f776aad74e5d837ea
|
@@ -17,7 +17,7 @@ module Effective
|
|
17
17
|
scope: 'com.intuit.quickbooks.accounting'
|
18
18
|
)
|
19
19
|
|
20
|
-
redirect_to(grant_url)
|
20
|
+
redirect_to(grant_url, allow_other_host: true)
|
21
21
|
end
|
22
22
|
|
23
23
|
# This matches the QuickBooks Redirect URI and we have to set it up ahead of time.
|
@@ -39,7 +39,7 @@ module Effective
|
|
39
39
|
|
40
40
|
flash[:success] = 'Successfully connected with QuickBooks Online'
|
41
41
|
|
42
|
-
redirect_to(effective_qb_online.admin_quickbooks_path)
|
42
|
+
redirect_to(effective_qb_online.admin_quickbooks_path, allow_other_host: true)
|
43
43
|
end
|
44
44
|
|
45
45
|
def revoke
|
@@ -59,7 +59,7 @@ module Effective
|
|
59
59
|
flash[:danger] = 'Unable to revoke'
|
60
60
|
end
|
61
61
|
|
62
|
-
redirect_to(effective_qb_online.admin_quickbooks_path)
|
62
|
+
redirect_to(effective_qb_online.admin_quickbooks_path, allow_other_host: true)
|
63
63
|
end
|
64
64
|
|
65
65
|
private
|
@@ -164,7 +164,7 @@ module Effective
|
|
164
164
|
rate_id = code.sales_tax_rate_list.tax_rate_detail.first&.tax_rate_ref&.value
|
165
165
|
rate = rates.find { |rate| rate.id == rate_id } if rate_id
|
166
166
|
|
167
|
-
[rate.rate_value.to_s, code] if rate && (exempt.blank? || rate.rate_value > 0.0)
|
167
|
+
[rate.rate_value.to_s, code] if rate && (exempt.blank? || rate.rate_value.to_f > 0.0)
|
168
168
|
end
|
169
169
|
|
170
170
|
(Array(exempt) + tax_codes.compact).to_h
|
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.6.
|
4
|
+
version: 0.6.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:
|
11
|
+
date: 2025-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|