1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Merge pull request #5357 from turbo124/master

Migrate client task rate.
This commit is contained in:
David Bomba 2021-04-07 07:53:10 +10:00 committed by GitHub
commit 2d08738ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,9 +298,12 @@ info("get company");
$settings = new \stdClass();
$settings->currency_id = $client->currency_id ? (string) $client->currency_id : (string) $client->account->currency_id;
if ($client->language_id) {
if($client->task_rate && $client->task_rate > 0)
$settings->default_task_rate = (float)$client->task_rate;
if ($client->language_id)
$settings->language_id = (string)$client->language_id;
}
return $settings;
}