mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Transformer fixes
This commit is contained in:
parent
bd1952df3a
commit
a6579e43df
@ -53,6 +53,12 @@ class ClientContact extends Authenticatable
|
||||
'company'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'updated_at' => 'timestamp',
|
||||
'created_at' => 'timestamp',
|
||||
'deleted_at' => 'timestamp',
|
||||
];
|
||||
|
||||
protected $hidden = [
|
||||
'password',
|
||||
'remember_token',
|
||||
|
@ -84,6 +84,8 @@ class ClientTransformer extends EntityTransformer
|
||||
'payment_terms' => (int) $client->payment_terms,
|
||||
'vat_number' => $client->vat_number ?: '',
|
||||
'id_number' => $client->id_number ?: '',
|
||||
'updated_at' => $client->updated_at,
|
||||
'deleted_at' => $client->deleted_at,
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user