1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-06 03:02:34 +01:00

Fixes for payment transformerS (#3437)

This commit is contained in:
David Bomba 2020-03-06 22:21:17 +11:00 committed by GitHub
parent 46d795a61f
commit 000ae58fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ class PaymentTransformer extends EntityTransformer
'project_id' => (string) $this->encodePrimaryKey($payment->project_id), 'project_id' => (string) $this->encodePrimaryKey($payment->project_id),
'vendor_id' => (string) $this->encodePrimaryKey($payment->vendor_id), 'vendor_id' => (string) $this->encodePrimaryKey($payment->vendor_id),
'currency_id' => (string) $payment->currency_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 ?: '', 'exchange_currency_id' => (string) $payment->exchange_currency_id ?: '',
]; ];
} }