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.
- checksums.yaml +4 -4
- data/lib/invoice.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5243e3335e6493c1a4ce19769c46730729576904
|
4
|
+
data.tar.gz: 068bb5e32c323da931510da9c205606a8778e645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5310182c911009e0e22aae4f5ceaacce08472298b9c4126953ba0831850a60cb161b6979b85d29e890b8da028620b71b657a2abbaf6e4656b901f85d8208f2a3
|
7
|
+
data.tar.gz: 2b86a7c418f70faa014d76e3025423b680c011eed88bb29c0176c1e0402fe67b647d83c5cdd20a77ee0a2e9a493ec48690da965c35c543eddd854af4bc26a572
|
data/lib/invoice.rb
CHANGED
@@ -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(:
|
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|
|