mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add vendor display name to vendor transformer
This commit is contained in:
parent
566c0695dc
commit
6313761003
@ -105,6 +105,7 @@ class VendorTransformer extends EntityTransformer
|
||||
'number' => (string) $vendor->number ?: '',
|
||||
'language_id' => (string) $vendor->language_id ?: '',
|
||||
'classification' => (string) $vendor->classification ?: '',
|
||||
'display_name' => (string) $vendor->present()->name(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
12987
openapi/api-docs.yaml
12987
openapi/api-docs.yaml
File diff suppressed because it is too large
Load Diff
@ -145,6 +145,11 @@
|
||||
format: integer
|
||||
example: '134341234234'
|
||||
readOnly: true
|
||||
display_name:
|
||||
description: 'The display name of the vendor.'
|
||||
type: string
|
||||
example: 'Bob the vendor'
|
||||
readOnly: true
|
||||
settings:
|
||||
$ref: '#/components/schemas/CompanySettings'
|
||||
type: object
|
Loading…
x
Reference in New Issue
Block a user