1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Merge pull request #6483 from turbo124/v5-develop

Fixes for credit archived activity
This commit is contained in:
David Bomba 2021-08-18 13:03:55 +10:00 committed by GitHub
commit 5e667eba9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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;
$fields->payment_id = $event->credit->id;
$fields->credit_id = $event->credit->id;
$fields->client_id = $event->credit->client_id;
$fields->user_id = $user_id;
$fields->company_id = $event->credit->company_id;

View File

@ -144,6 +144,12 @@ class ImportCustomers
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)
{