API Credit doesn't contain client_id #1512
This commit is contained in:
parent
bdcaf6b3f1
commit
1a27a5b77d
2 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class CreditApiController extends BaseAPIController
|
|||
{
|
||||
$credits = Credit::scope()
|
||||
->withTrashed()
|
||||
->with(['invoice'])
|
||||
->with(['client'])
|
||||
->orderBy('created_at', 'desc');
|
||||
|
||||
return $this->listResponse($credits);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ class CreditTransformer extends EntityTransformer
|
|||
'credit_number' => $credit->credit_number,
|
||||
'private_notes' => $credit->private_notes,
|
||||
'public_notes' => $credit->public_notes,
|
||||
'client_id' => $credit->client->public_id,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue