caboose-cms 0.5.113 → 0.5.114
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/order.rb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NmU2YjI4YmE2YzNjZTc2OGJkZjBhMjZhZWZjZDUzYzgyZGYyNDA3Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2EyYzJkYTJiMDRhZjliOTQxNjc0ZTQxYWI2Mjk1NjE1YzQ0NTY0Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjlhYjczYzQ3MjI0NWVmMGNmYjFmYzY2NTA4ZjMwYjFhNjUxZWYxYjk2NDRm
|
10
|
+
NmE5ODA5NmJkNThhYmUxMGQyYjFiOTcyODAzZWZlMDYzOWUxMjVhZTdmMzNi
|
11
|
+
YmI2NWVhMjE2ZjJhZDViYjJjN2M2MjAxMWQ3YTliY2NmMWNkYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGY5NDhiOWY2ZTllYzc3ZjAxOWUwODc0Yzk4NzQ1MzRhMjMxNDBjNjdlNDE2
|
14
|
+
NDc1MGE4MWYyZGZhNDJkMjdkMWZjYWI5ZTJjODAyNWFjNjVmOWE3OGMyYTk1
|
15
|
+
ZDE3MTM0YWM2MTQ0YWQzOTBhZDE2MTA4OTFkOWEzNDU3MjNmNmE=
|
data/app/models/caboose/order.rb
CHANGED
@@ -144,7 +144,7 @@ module Caboose
|
|
144
144
|
def calculate_subtotal
|
145
145
|
return 0.0 if self.line_items.empty?
|
146
146
|
x = 0.0
|
147
|
-
self.line_items.each{ |li| x = x + li.variant.price }
|
147
|
+
self.line_items.each{ |li| x = x + (li.variant.price * li.quantity) } # Fixed issue with quantity
|
148
148
|
return x
|
149
149
|
end
|
150
150
|
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.114
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|