mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 11:04:41 -04:00
transformation of IDs to PUBLIC_IDs
This commit is contained in:
parent
f2fdb7f51c
commit
43b6e749c3
@ -68,7 +68,7 @@ class ClientTransformer extends EntityTransformer
|
|||||||
'name' => $client->name,
|
'name' => $client->name,
|
||||||
'balance' => (float) $client->balance,
|
'balance' => (float) $client->balance,
|
||||||
'paid_to_date' => (float) $client->paid_to_date,
|
'paid_to_date' => (float) $client->paid_to_date,
|
||||||
'user_id' => (int) $client->user->public_id,
|
'user_id' => (int) $client->user->public_id+1,
|
||||||
'account_key' => $this->account->account_key,
|
'account_key' => $this->account->account_key,
|
||||||
'updated_at' => $client->updated_at,
|
'updated_at' => $client->updated_at,
|
||||||
'deleted_at' => $client->deleted_at,
|
'deleted_at' => $client->deleted_at,
|
||||||
|
@ -20,7 +20,7 @@ class ContactTransformer extends EntityTransformer
|
|||||||
'phone' => $contact->phone,
|
'phone' => $contact->phone,
|
||||||
'last_login' => $contact->last_login,
|
'last_login' => $contact->last_login,
|
||||||
'account_key' => $this->account->account_key,
|
'account_key' => $this->account->account_key,
|
||||||
'client_id' => $contact->client_id
|
'client_id' => $contact->client->public_id
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user