invoicing_payments_processing 1.1.30 → 1.1.31

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 +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 212a2966346ed12f4de648a737a3ddeaea9b4886
4
- data.tar.gz: 891852dc15b535c8eff5bfbdcc1f5b79b3f209b8
3
+ metadata.gz: 91c8cdb3f2b07357df4ed4d7e53b42f3d13ccce9
4
+ data.tar.gz: 60242afcacd6a836b87324255b0a39af9cad79e7
5
5
  SHA512:
6
- metadata.gz: 1630c612e2036f822aa5d8540a86a9279f337b93fee1419899cd56c119d165474b765b9c75a52eee8b4b3d94ba4a5e8d1c61ba7c0a7ad9eac02b14d058604781
7
- data.tar.gz: 9e26f1b23afa365b8a09aea64d166affab51e9d15cf9e3228fa121072c3869c18a6ac75d9714e5e10c74280cd4cc18b5a106767769393282ef5e1ae6ee94c781
6
+ metadata.gz: 9c0951c13e1665cb9c5b5e16a5fa1024667fcd2178701d7c9f8ab8ab620a95837b45f5a8375c283eeb36dff9f240159deac6a5864d0be3ab75f6fbae0f2d4133
7
+ data.tar.gz: 6cb8ab4e9a8332c7d934a3629e673a0869a62076a03dc2177987e1eec1e515a56f981b1cfdac44e33efc5c50c98f4b5b8fb67dd868dd2057f4e1c6e83e331503
@@ -249,7 +249,11 @@ module BlackStack
249
249
 
250
250
  # retorna true si el estado de la factura sea NULL o UNPAID
251
251
  def canBeDeleted?
252
- self.status == nil || self.status == BlackStack::Invoice::STATUS_UNPAID
252
+ if self.paypal_subscription.nil?
253
+ return self.status == nil || self.status == BlackStack::Invoice::STATUS_UNPAID
254
+ else # !self.paypal_subscription.nil?
255
+ return (self.status == nil || self.status == BlackStack::Invoice::STATUS_UNPAID) && !self.paypal_subscription.active
256
+ end # if self.paypal_subscription.nil?
253
257
  end
254
258
 
255
259
  # actualiza el registro en la tabla invoice segun los parametros.
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.30
4
+ version: 1.1.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi