mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 06:34:34 -04:00
Merge pull request #6483 from turbo124/v5-develop
Fixes for credit archived activity
This commit is contained in:
commit
5e667eba9b
@ -45,7 +45,7 @@ class CreditArchivedActivity implements ShouldQueue
|
|||||||
|
|
||||||
$user_id = array_key_exists('user_id', $event->event_vars) ? $event->event_vars['user_id'] : $event->credit->user_id;
|
$user_id = array_key_exists('user_id', $event->event_vars) ? $event->event_vars['user_id'] : $event->credit->user_id;
|
||||||
|
|
||||||
$fields->payment_id = $event->credit->id;
|
$fields->credit_id = $event->credit->id;
|
||||||
$fields->client_id = $event->credit->client_id;
|
$fields->client_id = $event->credit->client_id;
|
||||||
$fields->user_id = $user_id;
|
$fields->user_id = $user_id;
|
||||||
$fields->company_id = $event->credit->company_id;
|
$fields->company_id = $event->credit->company_id;
|
||||||
|
@ -144,6 +144,12 @@ class ImportCustomers
|
|||||||
|
|
||||||
public function match()
|
public function match()
|
||||||
{
|
{
|
||||||
|
$this->stripe->init();
|
||||||
|
|
||||||
|
$this->update_payment_methods = new UpdatePaymentMethods($this->stripe);
|
||||||
|
|
||||||
|
if(strlen($this->stripe->company_gateway->getConfigField('account_id')) < 1)
|
||||||
|
throw new StripeConnectFailure('Stripe Connect has not been configured');
|
||||||
|
|
||||||
foreach($this->stripe->company_gateway->company->clients as $client)
|
foreach($this->stripe->company_gateway->company->clients as $client)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user