1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 22:22:32 +01:00

Merge pull request #537 from turbo124/master

transformation of IDs to PUBLIC_IDs
This commit is contained in:
David Bomba 2015-11-19 19:43:25 +11:00
commit 7720c45ae2
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
];
}
}