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
- NGRlMTBkOTUzOWM0NzkxZGQ0NGVlMDdlY2E3MzQ3ZDMxYjAzZjg5Mg==
4
+ NTZmYjMwNTE1OTY0OWNjYzRkMTczOWRlZTgyMzI4ZWExOTc3MjJlMA==
5
5
  data.tar.gz: !binary |-
6
- MGQxNDcyYWIzNzBlOGJhZjNmYzY4OGNhZjRmMDQ4YTc2MzA1MDc3ZQ==
6
+ MDRiYjE5ZjNkMTQwNDI1M2IzMTRjNWQ5ZWUzZDg1MjE3NzdkMjYxMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjEzN2NlM2M3YzEwMzA2MDBiMWUzYTczMjFmZWFiOTIyYTQ3NWY2ZTM2YjY1
10
- ZWFhOWMwNWMxYTJlNmU5MzBmZWEwNzAzNWFjZDZiOTk3ZDE1ZTdjMWVlOWMz
11
- NTE5Y2RjZDk1NjM0YTNlNTAyZTAzYTQ2ODQxMWI3MDgxMzk5OTg=
9
+ ZjUxM2NjMDBmMGM1NDVmMjJkZmZhNDRmYzk3YzJkNDEyNTllZDAzOGQ3NjJj
10
+ N2Y3OWFmYzM5MTE2ZTVhNjIwNzljN2I2ZjgyYzI1MzA4MTdhNWRlODUxN2Jh
11
+ NzYwMDU2MzM3N2MyNWZlNmQ3NzdhZWI5ZWU3NTY1NmQ2ZTkyOTk=
12
12
  data.tar.gz: !binary |-
13
- ZjkwYmVjNjE3MDU4ZGEzYmRiNmVhYmE2MTM5NjI4NjViYzRlMGVjZjI2Mzgz
14
- ZDE3YTFlM2Y5N2E4OTA0OTg3NThlOGQyMzYzMWJjNDAyMzU2NmU4MGFjYmI1
15
- NTliODNmZmFmMWQyMDE5MGNmYWZmMzAyODEyYzk2NDE1MzZhNDc=
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',
@@ -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 order.total > t.amount
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 == 'authorized' %>
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 == 'captured' %>
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 %>)" />
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.159'
2
+ VERSION = '0.5.160'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.159
4
+ version: 0.5.160
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry