piggybak_coupons 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,6 +41,7 @@ var piggybak_coupons = {
41
41
  $('#coupon_response').html('Coupon successfully applied to order.').show();
42
42
  $('#coupon_application_total').html('-$' + (-1*parseFloat(data.amount)).toFixed(2));
43
43
  $('#coupon_application_row').show();
44
+ piggybak.update_tax();
44
45
  piggybak.update_totals();
45
46
  } else {
46
47
  if($('#coupon_code').val() != '') {
@@ -48,6 +49,7 @@ var piggybak_coupons = {
48
49
  }
49
50
  $('#coupon_application_total').html('$0.00');
50
51
  $('#coupon_application_row').hide();
52
+ piggybak.update_tax();
51
53
  piggybak.update_totals();
52
54
  }
53
55
  $('#coupon_ajax').hide();
@@ -16,6 +16,7 @@ module PiggybakCoupons
16
16
  :nested_attrs => true,
17
17
  :fields => ["coupon_application"],
18
18
  :allow_destroy => true,
19
+ :reduce_tax_subtotal => true,
19
20
  :class_name => "::PiggybakCoupons::CouponApplication",
20
21
  :display_in_cart => "Discount",
21
22
  :sort => config.line_item_types[:payment][:sort]
@@ -1,3 +1,3 @@
1
1
  module PiggybakCoupons
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piggybak_coupons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-15 00:00:00.000000000 Z
12
+ date: 2012-11-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -95,7 +95,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 3114615988590280187
98
+ hash: -2617351469399147885
99
99
  required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  none: false
101
101
  requirements:
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  version: '0'
105
105
  segments:
106
106
  - 0
107
- hash: 3114615988590280187
107
+ hash: -2617351469399147885
108
108
  requirements: []
109
109
  rubyforge_project:
110
110
  rubygems_version: 1.8.23