invoicing_payments_processing 1.1.32 → 1.1.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/invoice.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 767d1959445a933872a088246a96ce835a7aa1c1
4
- data.tar.gz: a6d3dc28e802706eb1360daf4c5c16940e6a49c7
3
+ metadata.gz: 5243e3335e6493c1a4ce19769c46730729576904
4
+ data.tar.gz: 068bb5e32c323da931510da9c205606a8778e645
5
5
  SHA512:
6
- metadata.gz: 5ce9bd86e5bc541e6887b48c86c1086b854b0640a3e106881241a4285d0b660251c6987d9157ad803b60b865924fa65417a876f789bba45cb6475f190831011b
7
- data.tar.gz: 06758180d0eaa6004a541fe5eb89a13b9590357acdbe1ccb45b3d198f9cfb097002ff664420dca02594672eb53133fa4d84746d6879769e83f6d0be9085d211e
6
+ metadata.gz: 5310182c911009e0e22aae4f5ceaacce08472298b9c4126953ba0831850a60cb161b6979b85d29e890b8da028620b71b657a2abbaf6e4656b901f85d8208f2a3
7
+ data.tar.gz: 2b86a7c418f70faa014d76e3025423b680c011eed88bb29c0176c1e0402fe67b647d83c5cdd20a77ee0a2e9a493ec48690da965c35c543eddd854af4bc26a572
@@ -17,7 +17,7 @@ module BlackStack
17
17
  def paypal_subscription
18
18
  return nil if self.subscr_id.nil?
19
19
  return nil if self.subscr_id.to_s.size == 0
20
- return BlackStack::PayPalSubscription.where(:code=>self.subscr_id.to_s).first
20
+ return BlackStack::PayPalSubscription.where(:subscr_id=>self.subscr_id.to_s).first
21
21
  end
22
22
 
23
23
  # compara 2 planes, y retorna TRUE si ambos pueden coexistir en una misma facutra, con un mismo enlace de PayPal
@@ -66,6 +66,7 @@ module BlackStack
66
66
  #
67
67
  def set_subscription(s)
68
68
  self.subscr_id = s.subscr_id
69
+ self.delete_time = nil
69
70
  self.save
70
71
  # aplico la mismam modificacion a todas las factuas que le siguieron a esta
71
72
  BlackStack::Invoice.where(:id_previous_invoice=>self.id).all { |j|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: invoicing_payments_processing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.32
4
+ version: 1.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi