caboose-cms 0.5.143 → 0.5.144
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/orders_controller.rb +7 -7
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTBkNjY5NmJkMWRmNjljM2I1NjU2NTFkNDZlN2IyZGIzZDg1YTgyNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDEwNmU1MjUwNjkxYTQ5NGYzOWUzYWE4YzNlZjliNjI2YjViODAxMw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDM3YWY0MGNjMmJhYThiMmRlNTlkZDAyOTk3ZTZkODdhODRjNzg3NTljNzli
|
10
|
+
OWE0ODk5NzYyOTU3NTA4YzFlZTQyYTg1NDk4ODdhN2JjMzgyMjJhMzI2NWVm
|
11
|
+
Mzg3OWFmOTY4MzllYmRhYTdiNTJkMDU3MDk5ODFlOTlkNjdlZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjI1MWEwNDRmOTU2NDYwYTg0YWJjYzJmMTBmNmU2NWM2NzM3MzJhNWUzNjRh
|
14
|
+
NWMyMTM5NGI3YTA5MTBjMDMyNmJhNmUzYWJkNzYzMGU1OGQzNjVkZmMxYTE2
|
15
|
+
YTVlZDBjMjQ0NjM1OTU4ZjQ0YjU0YTZjNTVlZDc0Zjk2MjE1OWM=
|
@@ -283,15 +283,15 @@ module Caboose
|
|
283
283
|
save = true
|
284
284
|
params.each do |name,value|
|
285
285
|
case name
|
286
|
-
when 'tax'
|
287
|
-
when 'shipping'
|
288
|
-
when 'handling'
|
289
|
-
when '
|
290
|
-
when 'status'
|
291
|
-
when 'customer_id'
|
286
|
+
when 'tax' then order.tax = value
|
287
|
+
when 'shipping' then order.shipping = value
|
288
|
+
when 'handling' then order.handling = value
|
289
|
+
when 'custom_discount' then order.custom_discount = value
|
290
|
+
when 'status' then order.status = value
|
291
|
+
when 'customer_id' then order.customer_id = value
|
292
292
|
end
|
293
293
|
end
|
294
|
-
order.
|
294
|
+
order.calculate
|
295
295
|
resp.success = save && order.save
|
296
296
|
render :json => resp
|
297
297
|
end
|
data/lib/caboose/version.rb
CHANGED