caboose-cms 0.5.150 → 0.5.151

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
- YzNjODU2MjBlZDY5NTlkODI2N2Q1MGNhNGU1N2RmZThkOTQ2OGJmZg==
4
+ ZDg5YjIzMDA3ZDMwMjhhMTQxMDRmYTMwNDkwNjIxNTQzYzljMzk3ZA==
5
5
  data.tar.gz: !binary |-
6
- Zjk1YjkwYzJkYzNiODI5NzVhNjE1MWE3MTIzNjJhZTE4MWFkY2RkNw==
6
+ ZDVmY2Q0OTE3OTI0ODJiYzI3ZGJkNTAyMWRlODhkMzZkOGQwNjhmMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MzgxMTFjYWIzYzMxMTdlZmIxY2E2NWNlNGU2Njc1YWI0ZWQ5NmZlNWZlYzhl
10
- ZGM2MDY2MzM3MTg2ZDQ5ZWQ2ZmU0ZmFlNzljYTc1N2IyNjMzNzgzYjIwYzVi
11
- MjgzZDdhYzgzNDRmMWE4YmRlZTBiYWJhNDJlOGFjZjY4Y2FjMWU=
9
+ ZDA4ZGE4Y2VkZGY5NjE5OGYyMTk1YWFhN2E4OGFhYjhlYzE3MzZlMzMxYzEy
10
+ MzFlNjg2OTczODViYzRjMGEzMjVlYTgxNzU0YmVmYWY3MmUxZjY4ZmFhOTI3
11
+ NDYzMDAwZGYyOWNlN2E1MDY2Y2YzNmEwNmU4NmM1ZjAzODg4YjQ=
12
12
  data.tar.gz: !binary |-
13
- YjI1ODg3NWY3YTlmYmQzMTZjZDM0MDQ2MGRlYzM4ODc0OGVjMWMwNmVjMTNi
14
- ZGNlNjg0N2MzNTUxMzMwMDU5MDJjNTRmMjEyM2JhMzJjNThhZWRmNThkNjdi
15
- YjI0NTZmYWNlMDljNTZiNGQ2ODMxMzZkYmFmZDBlOWQ3NjQ2ZWU=
13
+ NjY4M2E4NzgxY2UzYmQ4YmIzY2JkNmU1NGQ0MGY2NDNkYzYxMjZlMWQxYWM2
14
+ NGY2ZjliY2E0YWFmMGMwN2Y5NzkyNGI3ZjQ3YWEyN2YyZjNhZjhhYjM5NGE0
15
+ ZGVmNWUzZDg5MTc0MzI3OTliY2IxZWM1YWQ4Yjg1ZWU2ZGEwZTc=
@@ -704,8 +704,8 @@ OrderController.prototype = {
704
704
  url: '/admin/orders/' + that.order.id + '/void',
705
705
  success: function(resp) {
706
706
  if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
707
- if (resp.success) that.refresh();
708
- if (resp.refresh) that.refresh();
707
+ if (resp.success) { $('#message').empty(); that.refresh(); }
708
+ if (resp.refresh) { $('#message').empty(); that.refresh(); }
709
709
  }
710
710
  });
711
711
  },
@@ -716,7 +716,7 @@ OrderController.prototype = {
716
716
  if (!confirm)
717
717
  {
718
718
  var p = $('<p/>').addClass('note confirm')
719
- .append("Are you sure you want to charge " + that.order.total + " to the customer? ")
719
+ .append("Are you sure you want to charge $" + parseFloat(that.order.total).toFixed(2) + " to the customer? ")
720
720
  .append($('<input/>').attr('type','button').val('Yes').click(function() { that.capture_funds(true); }))
721
721
  .append(' ')
722
722
  .append($('<input/>').attr('type','button').val('No').click(function() { $('#message').empty(); }));
@@ -728,8 +728,8 @@ OrderController.prototype = {
728
728
  url: '/admin/orders/' + that.order.id + '/capture',
729
729
  success: function(resp) {
730
730
  if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>");
731
- if (resp.success) that.refresh();
732
- if (resp.refresh) that.refresh();
731
+ if (resp.success) { $('#message').empty(); that.refresh(); }
732
+ if (resp.refresh) { $('#message').empty(); that.refresh(); }
733
733
  }
734
734
  });
735
735
  }
@@ -79,11 +79,10 @@ module Caboose
79
79
  when 'authorize.net'
80
80
  transaction = AuthorizeNet::AIM::Transaction.new(sc.pp_username, sc.pp_password)
81
81
  response = transaction.prior_auth_capture(t.transaction_id, order.total)
82
- Caboose.log(response.inspect)
83
-
82
+
84
83
  order.update_attribute(:financial_status, Order::FINANCIAL_STATUS_CAPTURED)
85
84
  resp.success = 'Captured funds successfully'
86
-
85
+
87
86
  ot = Caboose::OrderTransaction.new(
88
87
  :order_id => order.id,
89
88
  :date_processed => DateTime.now.utc,
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.150'
2
+ VERSION = '0.5.151'
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.150
4
+ version: 0.5.151
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry