diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index a33f0214d585..b1fa52bb6596 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -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; } @@ -418,7 +421,7 @@ info("get company"); $credits = []; $export_credits = Invoice::where('account_id', $this->account->id) - ->where('balance', '<', '0') + ->where('amount', '<', '0') ->where('invoice_type_id', '=', INVOICE_TYPE_STANDARD) ->where('is_public', true) ->withTrashed()