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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e99d9449019c41677d5240d9a75a4168b7bb07a
4
- data.tar.gz: 196f3334037f74d2e7bacd0840e494836e36ab75
3
+ metadata.gz: 140493643f70cd83e346ae581dc3a8008f32d000
4
+ data.tar.gz: 80ea68be7f8cf7bacdbb937513a1a6c958b2e3c7
5
5
  SHA512:
6
- metadata.gz: 55f30ded4f49409106d514b75857d27e4495ac5db0397372c14be7c7aeccec2f27c0e495d37674b83d938c05879439cb3ab948d496ac129bdb281e4d109da970
7
- data.tar.gz: 71328dd57a681c5d2aa9e9fd4b43e5c83fef1d35e43f5e03d27491700b7e2da19104d7275b6f12061a70addbe863248281fb0f6e57e11c7a9636b5b2512fca34
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
@@ -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 += diff
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
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.42
4
+ version: 1.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi