c80_shared 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44a51d4481ee50b0c7f23f5ffaa86178bacc5ae83cb4c12fbf55b53d54d6f3cb
|
4
|
+
data.tar.gz: a8cac42446b394769440df3a3a2ea452ebc09170d1ab0971598cd4cc5e2218c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 604d906c348c5858dfdd24133ee2463fc1c5f0de43bd4644cf943385af12f9f416e2bfaba7d34d9c617a3eeebf06978ccf7d0515c9b3757c5bbedf9fefe4d774
|
7
|
+
data.tar.gz: 749004579ff5d47934d2e38979fd965dcff63a7a904e45e3c057290233a6ea43f481c69098ee63b1f9595f2c15cd9bd41ce481b6c2f0b49de9d1806331ab21e5
|
@@ -75,10 +75,10 @@ module Lease
|
|
75
75
|
val = nil
|
76
76
|
if bid.price.present? && bid.currency.present?
|
77
77
|
val = bid.price / 100.0 * (100 + bid.vat)
|
78
|
-
val = num_to_cur(val, bid.currency, @opts[:locale])
|
78
|
+
val = num_to_cur(val.to_i, bid.currency, @opts[:locale])
|
79
79
|
end
|
80
80
|
|
81
|
-
{ human_price_vat_include: val
|
81
|
+
{ human_price_vat_include: val }
|
82
82
|
end
|
83
83
|
|
84
84
|
def period(bid)
|
@@ -44,10 +44,10 @@ module Lease
|
|
44
44
|
val = nil
|
45
45
|
if rebate.amount.present? && rebate.currency.present?
|
46
46
|
val = rebate.amount / 100.0 * (100 + rebate.bid.vat)
|
47
|
-
val = num_to_cur(val, rebate.currency, @opts[:locale])
|
47
|
+
val = num_to_cur(val.to_i, rebate.currency, @opts[:locale])
|
48
48
|
end
|
49
49
|
|
50
|
-
{ human_price_vat_include: val
|
50
|
+
{ human_price_vat_include: val }
|
51
51
|
end
|
52
52
|
|
53
53
|
# VAT incl
|
data/lib/c80_shared/version.rb
CHANGED