invoicing_payments_processing 1.1.42 → 1.1.43
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 +4 -4
- data/lib/bufferpaypalnotification.rb +3 -3
- data/lib/invoice.rb +2 -2
- 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: 140493643f70cd83e346ae581dc3a8008f32d000
|
|
4
|
+
data.tar.gz: 80ea68be7f8cf7bacdbb937513a1a6c958b2e3c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54a7d6e151c012c5b9ce42e40cf4522f9f3f90d375b10781aafbb4e2e377f466cc16fed06dee1df74ff2b87c24a2f1c6547fb3204dded209926fd26bfb7db392
|
|
7
|
+
data.tar.gz: 0f192df5ad0552d02daf1151dd73a802ec34507a9eb79fe50f3a79fb09f217839c5293ac6ed027ae241af36478686178f2a8058f610ed301b9e88d163d6886bb
|
|
@@ -236,9 +236,9 @@ module BlackStack
|
|
|
236
236
|
def self.process(params)
|
|
237
237
|
DB.transaction do
|
|
238
238
|
# verifico que no existe ya una notificacion
|
|
239
|
-
puts
|
|
240
|
-
puts
|
|
241
|
-
puts "params2:#{params.to_s}:."
|
|
239
|
+
#puts
|
|
240
|
+
#puts
|
|
241
|
+
#puts "params2:#{params.to_s}:."
|
|
242
242
|
b = BlackStack::BufferPayPalNotification.where(:id=>params['id']).first
|
|
243
243
|
if b.nil?
|
|
244
244
|
# proceso la notificacion
|
data/lib/invoice.rb
CHANGED
|
@@ -316,9 +316,9 @@ module BlackStack
|
|
|
316
316
|
self.status = BlackStack::Invoice::STATUS_PAID
|
|
317
317
|
self.delete_time = nil
|
|
318
318
|
if self.previous.nil? # si es la primer factura de una suscripcion, o no es una suscripcion
|
|
319
|
-
diff = payment_time - self.billing_period_from
|
|
319
|
+
diff = payment_time.to_time - self.billing_period_from.to_time
|
|
320
320
|
self.billing_period_from = payment_time
|
|
321
|
-
self.billing_period_to
|
|
321
|
+
self.billing_period_to = self.billing_period_to.to_time + diff
|
|
322
322
|
end
|
|
323
323
|
self.save
|
|
324
324
|
# expiracion de creditos de la factura anterior
|