mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:44:32 -04:00
Fixes for stripe import customers
This commit is contained in:
parent
63ded8eeaf
commit
31c8eb1a19
@ -56,7 +56,7 @@ class ImportCustomers
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Now call the update payment methods handler*/
|
/* Now call the update payment methods handler*/
|
||||||
$this->stripe->updateAllPaymentMethods();
|
// $this->stripe->updateAllPaymentMethods();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -508,10 +508,10 @@ class StripePaymentDriver extends BaseDriver
|
|||||||
* the respective tokens in the system.
|
* the respective tokens in the system.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
// public function updateAllPaymentMethods()
|
public function updateAllPaymentMethods()
|
||||||
// {
|
{
|
||||||
// return (new UpdatePaymentMethods($this))->run();
|
return (new UpdatePaymentMethods($this))->run();
|
||||||
// }
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Imports stripe customers and their payment methods
|
* Imports stripe customers and their payment methods
|
||||||
|
@ -126,7 +126,7 @@ class UpdateReminder extends AbstractService
|
|||||||
$date_collection->push($reminder_date);
|
$date_collection->push($reminder_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($date_collection->count() >=1)
|
if($date_collection->count() >=1 && $date_collection->sort()->first()->gte(now()))
|
||||||
$this->invoice->next_send_date = $date_collection->sort()->first();
|
$this->invoice->next_send_date = $date_collection->sort()->first();
|
||||||
else
|
else
|
||||||
$this->invoice->next_send_date = null;
|
$this->invoice->next_send_date = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user