invoicing_payments_processing 1.1.5 → 1.1.6

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
  SHA1:
3
- metadata.gz: 05607ccf6270087041f4204da5d1175f4cbb69ad
4
- data.tar.gz: 178616b62e1baf3a71a768f03050219f28dcc019
3
+ metadata.gz: d0cf5a163ff494d074715ddf82237061aacc9ada
4
+ data.tar.gz: 06ad431a73478d5b46d159728784e3b2d58931ef
5
5
  SHA512:
6
- metadata.gz: 59d53d7c5420dd4b7faefa1cc9e97a53672d46fd9520e9403026487577bab9dff54bd1341a2f5910e1d9f0096d87e197945bb9b7649e6516c5e71643055d8f99
7
- data.tar.gz: 394faf0fa9d17fd5a317505077923f25eb426e4c13be69334fc65b52568faa2ca32a77ab4b5c184c3b76423c1eeba67acec75950e2554856ccc0282a5768ae8f
6
+ metadata.gz: 965b80036915710e22ad4b9db02459531ffee337a4140b3978f6ea12e9495429dfb99e89701b388b84a909b8473b301d6f3da6d0cf2305c2dd979951c0bd4cf8
7
+ data.tar.gz: 768baae06620152b0c37c82d5038642d9a274258141ea7902670d80f4d7723af0ba4de56dd7e5c57e2f5d5b901ebef9c1dc34d2fd1d563af82e49f5e3965a182
@@ -43,13 +43,19 @@ module BlackStack
43
43
  def get_client()
44
44
  # obtengo el cliente que machea con este perfil
45
45
  c = nil
46
- if (c == nil)
46
+ if c.nil?
47
+ if self.invoice.guid?
48
+ i = BlackStack::Invoice.where(:id=>self.invoice).first
49
+ c = i.client if !i.nil?
50
+ end
51
+ end
52
+ if c.nil?
47
53
  cid = self.invoice.split(".").first.to_s
48
54
  if cid.guid?
49
55
  c = BlackStack::Client.where(:id=>cid).first
50
56
  end
51
57
  end
52
- if (c == nil)
58
+ if c.nil?
53
59
  c = BlackStack::Client.where(:paypal_email=>self.payer_email).first
54
60
  if (c == nil)
55
61
  u = User.where(:email=>self.payer_email).first
@@ -58,13 +64,13 @@ module BlackStack
58
64
  end
59
65
  end
60
66
  end
61
- if (c == nil)
67
+ if c.nil?
62
68
  s = BlackStack::PayPalSubscription.where(:payer_email=>self.payer_email).first
63
69
  if (s!=nil)
64
70
  c = s.client
65
71
  end
66
72
  end
67
- if (c == nil)
73
+ if c.nil?
68
74
  # obtengo el cliente - poco elegante
69
75
  q =
70
76
  "SELECT TOP 1 i.id_client AS cid " +
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.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi