From 000ae58fc624a20b1cf34d372bf0b461416b849d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 6 Mar 2020 22:21:17 +1100 Subject: [PATCH] Fixes for payment transformerS (#3437) --- app/Transformers/PaymentTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformers/PaymentTransformer.php b/app/Transformers/PaymentTransformer.php index e3c3cfcfbf..dad2273702 100644 --- a/app/Transformers/PaymentTransformer.php +++ b/app/Transformers/PaymentTransformer.php @@ -92,7 +92,7 @@ class PaymentTransformer extends EntityTransformer 'project_id' => (string) $this->encodePrimaryKey($payment->project_id), 'vendor_id' => (string) $this->encodePrimaryKey($payment->vendor_id), 'currency_id' => (string) $payment->currency_id ?: '', - 'exchange_rate' => (string) $payment->exchange_rate ?: '', + 'exchange_rate' => (float) $payment->exchange_rate ?: 1, 'exchange_currency_id' => (string) $payment->exchange_currency_id ?: '', ]; }