billing 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/billing/issue_fiscal_doc.rb +3 -2
- data/lib/billing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 147cc9d6ce24271a8d4e80fa04a56a5dca0d8d72
|
4
|
+
data.tar.gz: 3c33ce95f0b483eadde14bc5bf6c195958ba162a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: acec010d5a56e88a2d876ee0d07af444f4b56750a659c25e7efd4dff1d6b978d60f6e8e968287957222aec1bf6d6a5e32e4432e6441673a36ad77a0f70e11921
|
7
|
+
data.tar.gz: 986ba6475942af85be9fc3cdab8d9cf7d9c75c895c1a69a26c5d8b8a698a75638e98ef3a298d561a9e491faaba747587ebd61540e3bc64d3d15f3fdfe86b17c2
|
@@ -48,9 +48,10 @@ module Billing
|
|
48
48
|
)
|
49
49
|
end
|
50
50
|
end
|
51
|
-
if
|
51
|
+
if bill.modifiers.global.any?
|
52
52
|
s.notify "Register Global Modifier"
|
53
|
-
|
53
|
+
global_modifier = bill.modifiers.global.first
|
54
|
+
s.add_total_modifier bill.global_modifier_value.try(:to_f), global_modifier.percent_ratio.try(:to_f)
|
54
55
|
end
|
55
56
|
s.notify "Register Payment"
|
56
57
|
bill.payments.each do |payment|
|
data/lib/billing/version.rb
CHANGED