transformer fixes

This commit is contained in:
David Bomba 2019-10-02 18:38:33 +10:00
parent f5d4ec951e
commit 1248407101

View File

@ -58,9 +58,9 @@ class ClientTransformer extends EntityTransformer
'name' => $client->name ?: '',
'website' => $client->website ?: '',
'private_notes' => $client->private_notes ?: '',
'balance' => $client->balance ?: '',
'balance' => (float) $client->balance,
'currency_id' => (string)$client->currency_id ?: '',
'paid_to_date' => $client->paid_to_date ?: '',
'paid_to_date' => (float) $client->paid_to_date,
'last_login' => $client->last_login ?: '',
'address1' => $client->address1 ?: '',
'address2' => $client->address2 ?: '',
@ -80,7 +80,7 @@ class ClientTransformer extends EntityTransformer
'shipping_postal_code' => $client->shipping_postal_code ?: '',
'shipping_country_id' => $client->shipping_country_id ?: '',
'settings' => $client->settings ?: '',
'is_deleted' => (bool) $client->is_deleted ?: '',
'is_deleted' => (bool) $client->is_deleted,
'payment_terms' => $client->payment_terms ?: '',
'vat_number' => $client->vat_number ?: '',
'id_number' => $client->id_number ?: '',