invoicing_payments_processing 1.1.51 → 1.1.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bufferpaypalnotification.rb +9 -7
- 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: a041204eaed01ab7a77e725d80a2097b8483304c
|
4
|
+
data.tar.gz: 8fb9df52feccc39824f57a4275541f8d40fe300f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 429e8b18fcea87ba90503ce9080cce97dc26e9814ea3302fdf4aa20d5f1aa2a5839f76b20178d3e876ce2d40e994adba1f8a5b636a3bb088514d7149258a28f6
|
7
|
+
data.tar.gz: 2b1f92d1d307dba79c5db11f15a78fc99c1e457bba6b32d2fcb86db569ff20c6d5aae493753d027897b2a8babd1cf70dfa2e9178feccb89962cfb094e1f10c33
|
@@ -48,19 +48,21 @@ puts "self.invoice:#{self.invoice.to_s}:."
|
|
48
48
|
# obtengo el cliente que machea con este perfil
|
49
49
|
c = nil
|
50
50
|
if c.nil?
|
51
|
-
puts 'a'
|
52
51
|
if self.invoice.guid?
|
53
|
-
puts 'b'
|
54
52
|
i = BlackStack::Invoice.where(:id=>self.invoice).first
|
55
53
|
c = i.client if !i.nil?
|
56
54
|
end
|
57
55
|
end
|
58
56
|
if c.nil?
|
59
|
-
|
57
|
+
iid = self.invoice.split(".").last.to_s
|
58
|
+
if iid.guid?
|
59
|
+
i = BlackStack::Invoice.where(:id=>iid).first
|
60
|
+
c = i.client if !i.nil?
|
61
|
+
end
|
62
|
+
end
|
63
|
+
if c.nil?
|
60
64
|
cid = self.invoice.split(".").first.to_s
|
61
|
-
puts "c:#{cid}:."
|
62
65
|
if cid.guid?
|
63
|
-
puts 'd'
|
64
66
|
c = BlackStack::Client.where(:id=>cid).first
|
65
67
|
end
|
66
68
|
end
|
@@ -353,7 +355,7 @@ puts 'd'
|
|
353
355
|
s.save
|
354
356
|
|
355
357
|
# obtengo la factura que se creo con esta suscripcion
|
356
|
-
i = BlackStack::Invoice.where(:id=>b.invoice).first
|
358
|
+
i = BlackStack::Invoice.where(:id=>b.invoice.split(".").last.to_s).first
|
357
359
|
|
358
360
|
# vinculo esta suscripcion a la factura que la genero, y a todas las facturas siguientes
|
359
361
|
i.set_subscription(s)
|
@@ -401,7 +403,7 @@ puts 'd'
|
|
401
403
|
"SELECT TOP 1 i.id " +
|
402
404
|
"FROM buffer_paypal_notification b " +
|
403
405
|
"JOIN invoice i ON ( b.id=i.id_buffer_paypal_notification AND i.status=#{BlackStack::Invoice::STATUS_PAID.to_s} ) " +
|
404
|
-
"WHERE b.invoice='#{b.invoice}' " +
|
406
|
+
"WHERE b.invoice='#{b.invoice.invoice.split(".").last.to_s}' " +
|
405
407
|
"ORDER BY i.create_time DESC "
|
406
408
|
].first
|
407
409
|
if row.nil?
|