1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00

transformation of IDs to PUBLIC_IDs

This commit is contained in:
David Bomba 2015-11-19 19:42:53 +11:00
parent f2fdb7f51c
commit 43b6e749c3
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class ClientTransformer extends EntityTransformer
'name' => $client->name,
'balance' => (float) $client->balance,
'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,
'updated_at' => $client->updated_at,
'deleted_at' => $client->deleted_at,

View File

@ -20,7 +20,7 @@ class ContactTransformer extends EntityTransformer
'phone' => $contact->phone,
'last_login' => $contact->last_login,
'account_key' => $this->account->account_key,
'client_id' => $contact->client_id
'client_id' => $contact->client->public_id
];
}
}