1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Enforce client currency_id

This commit is contained in:
David Bomba 2024-08-30 14:08:09 +10:00
parent 8eb26085f0
commit f69cfb0ffa

View File

@ -125,6 +125,13 @@ class ImportCustomers
$settings->currency_id = (string) $currency->id;
$client->settings = $settings;
}
}else {
$settings = $client->settings;
$settings->currency_id = (string) $this->stripe->company_gateway->company->settings->currency_id;
$client->settings = $settings;
}
$client->name = $customer->name ? $customer->name : $customer->email;