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.
- checksums.yaml +4 -4
- data/lib/invoice.rb +5 -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: 91c8cdb3f2b07357df4ed4d7e53b42f3d13ccce9
|
4
|
+
data.tar.gz: 60242afcacd6a836b87324255b0a39af9cad79e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c0951c13e1665cb9c5b5e16a5fa1024667fcd2178701d7c9f8ab8ab620a95837b45f5a8375c283eeb36dff9f240159deac6a5864d0be3ab75f6fbae0f2d4133
|
7
|
+
data.tar.gz: 6cb8ab4e9a8332c7d934a3629e673a0869a62076a03dc2177987e1eec1e515a56f981b1cfdac44e33efc5c50c98f4b5b8fb67dd868dd2057f4e1c6e83e331503
|
data/lib/invoice.rb
CHANGED
@@ -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.
|
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.
|