|
|
|
@@ -39,6 +39,7 @@ class Customer extends KintoneModel |
|
|
|
|
|
|
|
protected const FIELD_NAMES = [ |
|
|
|
...parent::FIELD_NAMES, |
|
|
|
self::FIELD_CUSTOMER_CODE => 'customer_code', |
|
|
|
self::FIELD_CUSTOMER_NAME => 'customer_name', |
|
|
|
self::FIELD_CUSTOMER_NAME_KANA => 'customer_name_kana', |
|
|
|
self::FIELD_EMAIL => 'email', |
|
|
|
@@ -56,4 +57,11 @@ class Customer extends KintoneModel |
|
|
|
{ |
|
|
|
return static::getAccess()->first(static::getQuery()->where(self::FIELD_CUSTOMER_CODE, $customerCode)); |
|
|
|
} |
|
|
|
|
|
|
|
protected function toArrayCustom(): array |
|
|
|
{ |
|
|
|
return [ |
|
|
|
'customer_name_kana_hankaku' => mb_convert_kana($this->customerNameKana, "sk"), |
|
|
|
]; |
|
|
|
} |
|
|
|
} |