billing 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/billing/charge.rb +1 -1
- 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: 6c58097626f3a3697bd125eb7b19d7be6a3d1c06
|
4
|
+
data.tar.gz: ad34a72d3dbfbd5179d0210f2bdaa07d46e18752
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed302b3a8789794c97b3d94fdd3e0de09a7a62da5df30c810e89d5466b4f7fef4e258e9287073fcc0b135957ea53c5d29a1c0bdd38fe50dcfc2efad2bee53dfa
|
7
|
+
data.tar.gz: 992492c8ce61856982c48e9e0e83583c41666c65083220ecdf55bad56d2f1a5fed1fe00c9eb8d391bf48141995bddf56fc009fbca934ebf0f84899c8b454c57b
|
@@ -22,7 +22,7 @@ module Billing
|
|
22
22
|
validates_numericality_of :value, greater_than_or_equal_to: 0
|
23
23
|
|
24
24
|
after_initialize do
|
25
|
-
self.value =
|
25
|
+
self.value = qtyprice if self.new_record? #unless modifier.present? #bill validation will update modified value
|
26
26
|
end
|
27
27
|
|
28
28
|
def qtyprice
|
data/lib/billing/version.rb
CHANGED