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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 624069067ef76f9401f22e552151eb438e6d82f9
4
- data.tar.gz: 3d628ef7f38ef8d9a0810295393df5673ebcb2d4
3
+ metadata.gz: a041204eaed01ab7a77e725d80a2097b8483304c
4
+ data.tar.gz: 8fb9df52feccc39824f57a4275541f8d40fe300f
5
5
  SHA512:
6
- metadata.gz: dc95fb5484a6809daa6df41676dcae565378f4f8cdaf1db0de386a954b0cc5484c458f34205583230120fbfa131fb4a28181383987b89e76ea86bf36a610fbed
7
- data.tar.gz: f446b933246ea93c568826197ea3c3f00dc7dc176817cc125e4948038b12e967ec52c783eb95a0418d092a245aaf146daa89d2f3615572fbb389bd90d27600e5
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
- puts 'c'
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?
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.51
4
+ version: 1.1.52
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi