ish_models 0.0.33.285 → 0.0.33.286

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e325a01ece3aab8dacd0f932b072d971e54df0e27c0000d905b19f77d51d985b
4
- data.tar.gz: 61d00470b14d3cd5a2ab0007f1f2fc7161b1dc1ea162f17adac43f8e5377f58a
3
+ metadata.gz: 9858084eb2be19284f243aac721ab18d5796e734dd0ac5216a600199dde65b6e
4
+ data.tar.gz: f48ad96c4cef14657a7688090cd7415ecee6c2130cb25694897268eb6680401c
5
5
  SHA512:
6
- metadata.gz: 96807c7322acdb1068115b5ab73c95233b53cc1eea325da5fa4a854a018f86bc30d6dbba2c696d6c16805abddeae6024008d962161b65660f1ae9fcff20e0123
7
- data.tar.gz: b23cdb716dfe54f09e7798aad1a33e637783ef1952922867f698dcacb0033f76d0bfdd3d79c3d2525b426405706037157dcb04fb3fd031315ddbfc368c760e0c
6
+ metadata.gz: dc070cf944df807e0c43167ba5083f1d6269778f4fa6a5dfe784467f7e671dfdceb3fc05c3536389332f16fb3be0935bf725b8f60b7311ba3b17c701ac5f266b
7
+ data.tar.gz: bb0a82434672c5aad1c941e13d5a9e6c4d118c76008d8433929bdf9636cdd8482d5e24cb34b78d180fd5bd4efe933fc2f5fd5a62cf4a53606084c178970ded66
data/lib/ish/invoice.rb CHANGED
@@ -94,7 +94,7 @@ class Ish::Invoice
94
94
  total = 0
95
95
  leadset.subscriptions.each do |i|
96
96
  subtotal = (i.price.amount_cents * i.quantity).to_f/100
97
- lineitems_with_header.push([ i.price.product.name, i.price.to_s, i.quantity, subtotal ])
97
+ lineitems_with_header.push([ i.price.product.name, i.price.name_simple, i.quantity, subtotal ])
98
98
  total += subtotal
99
99
  end
100
100
 
data/lib/wco/price.rb CHANGED
@@ -21,6 +21,9 @@ class Wco::Price
21
21
  def name
22
22
  "$#{ amount_cents.to_f/100 } / #{interval}"
23
23
  end
24
+ def name_simple
25
+ "$#{ amount_cents.to_f/100 }"
26
+ end
24
27
 
25
28
  end
26
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.285
4
+ version: 0.0.33.286
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox