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:
commit
2d08738ae6
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user