mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Support client id number with CSV import
This commit is contained in:
parent
0771c899f4
commit
909a5801d6
@ -95,6 +95,10 @@ class Client extends EntityModel
|
||||
* @var string
|
||||
*/
|
||||
public static $fieldVatNumber = 'vat_number';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public static $fieldIdNumber = 'id_number';
|
||||
|
||||
/**
|
||||
* @return array
|
||||
@ -113,6 +117,7 @@ class Client extends EntityModel
|
||||
self::$fieldNotes,
|
||||
self::$fieldWebsite,
|
||||
self::$fieldVatNumber,
|
||||
self::$fieldIdNumber,
|
||||
Contact::$fieldFirstName,
|
||||
Contact::$fieldLastName,
|
||||
Contact::$fieldPhone,
|
||||
@ -140,6 +145,7 @@ class Client extends EntityModel
|
||||
'note' => 'notes',
|
||||
'site|website' => 'website',
|
||||
'vat' => 'vat_number',
|
||||
'id|number' => 'id_number',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@ class ClientTransformer extends BaseTransformer
|
||||
'private_notes' => $this->getString($data, 'notes'),
|
||||
'website' => $this->getString($data, 'website'),
|
||||
'vat_number' => $this->getString($data, 'vat_number'),
|
||||
'id_number' => $this->getString($data, 'id_number'),
|
||||
'contacts' => [
|
||||
[
|
||||
'first_name' => $this->getString($data, 'first_name'),
|
||||
|
Loading…
Reference in New Issue
Block a user