From 8bb70c7e9a5cf053603cf050de8816f7d074b8cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 10 Mar 2020 22:12:08 +0100 Subject: [PATCH] [V1] Update payment fields for export (#3469) * Update export payment fields * Add currency_id, export --- app/Traits/GenerateMigrationResources.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index 1a4e7285f7a9..b76f4c330f79 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -506,6 +506,9 @@ trait GenerateMigrationResources 'transaction_reference' => $payment->transaction_reference, 'payer_id' => $payment->payer_id, '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, '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,