Minor fixes for migration (#3484)

This commit is contained in:
David Bomba 2020-03-12 17:25:51 +11:00 committed by GitHub
parent b4f83a5755
commit f6fced6b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ class CreateTestData extends Command
$this->createInvoices($client);
$this->createInvoices($client, true);
$this->createTasks($client);
// $this->createTasks($client);
}
}

View File

@ -540,7 +540,7 @@ trait GenerateMigrationResources
'is_deleted' => $payment->is_deleted,
'exchange_rate' => $payment->exchange_rate ? number_format((float)$payment->exchange_rate, 6) : null,
'exchange_currency_id' => $payment->exchange_currency_id,
'currency_id' => $payment->client->currency->id,
'currency_id' => isset($payment->client->currency->id) ? $payment->client->currency->id : $this->account->currency_id,
'updated_at' => $payment->updated_at ? $payment->updated_at->toDateString() : null,
'created_at' => $payment->created_at ? $payment->created_at->toDateString() : null,
'deleted_at' => $payment->deleted_at ? $payment->deleted_at->toDateString() : null,