caboose-cms 0.5.159 → 0.5.160
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTZmYjMwNTE1OTY0OWNjYzRkMTczOWRlZTgyMzI4ZWExOTc3MjJlMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDRiYjE5ZjNkMTQwNDI1M2IzMTRjNWQ5ZWUzZDg1MjE3NzdkMjYxMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjUxM2NjMDBmMGM1NDVmMjJkZmZhNDRmYzk3YzJkNDEyNTllZDAzOGQ3NjJj
|
10
|
+
N2Y3OWFmYzM5MTE2ZTVhNjIwNzljN2I2ZjgyYzI1MzA4MTdhNWRlODUxN2Jh
|
11
|
+
NzYwMDU2MzM3N2MyNWZlNmQ3NzdhZWI5ZWU3NTY1NmQ2ZTkyOTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTRhN2M3OTQ5MDg0MjUwOTE3MjFhOGE4YTZlYzQxYjZkNDFhMTdiOWE5ODk1
|
14
|
+
Yjc2ZTM2YTA5MGRmOTgwZjNlNmVhOTk2MDNlNmJmN2RmMzM5NTRmNmQ2MDc3
|
15
|
+
M2FhNmU0NTQ5ZDM5NGI2ZmQ3Yjc0YTgxM2NjMjI3OGJiNWIyNmM=
|
@@ -7,7 +7,7 @@ module Caboose
|
|
7
7
|
|
8
8
|
@pager = Caboose::PageBarGenerator.new(params, {
|
9
9
|
'customer_id' => logged_in_user.id,
|
10
|
-
'status' => [Order::STATUS_PENDING, Order::STATUS_CANCELED, Order::STATUS_SHIPPED]
|
10
|
+
'status' => [Order::STATUS_PENDING, Order::STATUS_CANCELED, Order::STATUS_READY_TO_SHIP, Order::STATUS_SHIPPED]
|
11
11
|
}, {
|
12
12
|
'model' => 'Caboose::Order',
|
13
13
|
'sort' => 'order_number',
|
data/app/models/caboose/order.rb
CHANGED
@@ -242,7 +242,7 @@ module Caboose
|
|
242
242
|
|
243
243
|
if self.financial_status == Order::FINANCIAL_STATUS_CAPTURED
|
244
244
|
resp.error = "Funds for this order have already been captured."
|
245
|
-
elsif
|
245
|
+
elsif self.total > t.amount
|
246
246
|
resp.error = "The order total exceeds the authorized amount."
|
247
247
|
elsif t.nil?
|
248
248
|
resp.error = "This order doesn't seem to be authorized."
|
@@ -9,11 +9,11 @@
|
|
9
9
|
|
10
10
|
<p>
|
11
11
|
<input type='button' value='< Back' onclick="window.location='/admin/orders';" />
|
12
|
-
<% if @order.financial_status ==
|
12
|
+
<% if @order.financial_status == Caboose::Order::FINANCIAL_STATUS_AUTHORIZED %>
|
13
13
|
<input type='button' value='Capture Funds' onclick="controller.capture_funds();" />
|
14
14
|
<input type='button' value='Void' onclick="controller.void_order();" />
|
15
15
|
<% end %>
|
16
|
-
<% if @order.financial_status ==
|
16
|
+
<% if @order.financial_status == Caboose::Order::FINANCIAL_STATUS_CAPTURED %>
|
17
17
|
<input type='button' value='Refund' onclick="refund_order(<%= @order.id %>);" />
|
18
18
|
<% end %>
|
19
19
|
<input type='button' value='Resend Confirmation' onclick="resend_confirmation(<%= @order.id %>)" />
|
data/lib/caboose/version.rb
CHANGED