IO-1865 Add employee external ID
This commit is contained in:
@@ -14038,6 +14038,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>external_id</name>
|
||||||
|
<definition_loaded>false</definition_loaded>
|
||||||
|
<description></description>
|
||||||
|
<comment></comment>
|
||||||
|
<default_text></default_text>
|
||||||
|
<translations>
|
||||||
|
<translation>
|
||||||
|
<language>en-US</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>es-MX</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
<translation>
|
||||||
|
<language>fr-CA</language>
|
||||||
|
<approved>false</approved>
|
||||||
|
</translation>
|
||||||
|
</translations>
|
||||||
|
</concept_node>
|
||||||
<concept_node>
|
<concept_node>
|
||||||
<name>first_name</name>
|
<name>first_name</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
|
|||||||
@@ -328,6 +328,12 @@ export function ShopEmployeesFormComponent({ bodyshop }) {
|
|||||||
>
|
>
|
||||||
<Input />
|
<Input />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
<Form.Item
|
||||||
|
label={t("employees.fields.external_id")}
|
||||||
|
name="external_id"
|
||||||
|
>
|
||||||
|
<Input />
|
||||||
|
</Form.Item>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
<Form.List name={["rates"]}>
|
<Form.List name={["rates"]}>
|
||||||
{(fields, { add, remove, move }) => {
|
{(fields, { add, remove, move }) => {
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ export const QUERY_BODYSHOP = gql`
|
|||||||
last_name
|
last_name
|
||||||
employee_number
|
employee_number
|
||||||
rates
|
rates
|
||||||
|
external_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -219,6 +220,7 @@ export const UPDATE_SHOP = gql`
|
|||||||
employee_number
|
employee_number
|
||||||
rates
|
rates
|
||||||
user_email
|
user_email
|
||||||
|
external_id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ export const QUERY_EMPLOYEE_BY_ID = gql`
|
|||||||
rates
|
rates
|
||||||
pin
|
pin
|
||||||
user_email
|
user_email
|
||||||
|
external_id
|
||||||
employee_vacations(order_by: { start: desc }) {
|
employee_vacations(order_by: { start: desc }) {
|
||||||
id
|
id
|
||||||
start
|
start
|
||||||
|
|||||||
@@ -879,6 +879,7 @@
|
|||||||
"base_rate": "Base Rate",
|
"base_rate": "Base Rate",
|
||||||
"cost_center": "Cost Center",
|
"cost_center": "Cost Center",
|
||||||
"employee_number": "Employee Number",
|
"employee_number": "Employee Number",
|
||||||
|
"external_id": "External Employee ID",
|
||||||
"first_name": "First Name",
|
"first_name": "First Name",
|
||||||
"flat_rate": "Flat Rate (Disabled is Straight Time)",
|
"flat_rate": "Flat Rate (Disabled is Straight Time)",
|
||||||
"hire_date": "Hire Date",
|
"hire_date": "Hire Date",
|
||||||
|
|||||||
@@ -879,6 +879,7 @@
|
|||||||
"base_rate": "Tasa básica",
|
"base_rate": "Tasa básica",
|
||||||
"cost_center": "Centro de costos",
|
"cost_center": "Centro de costos",
|
||||||
"employee_number": "Numero de empleado",
|
"employee_number": "Numero de empleado",
|
||||||
|
"external_id": "",
|
||||||
"first_name": "Nombre de pila",
|
"first_name": "Nombre de pila",
|
||||||
"flat_rate": "Tarifa plana (deshabilitado es tiempo recto)",
|
"flat_rate": "Tarifa plana (deshabilitado es tiempo recto)",
|
||||||
"hire_date": "Fecha de contratación",
|
"hire_date": "Fecha de contratación",
|
||||||
|
|||||||
@@ -879,6 +879,7 @@
|
|||||||
"base_rate": "Taux de base",
|
"base_rate": "Taux de base",
|
||||||
"cost_center": "Centre de coûts",
|
"cost_center": "Centre de coûts",
|
||||||
"employee_number": "Numéro d'employé",
|
"employee_number": "Numéro d'employé",
|
||||||
|
"external_id": "",
|
||||||
"first_name": "Prénom",
|
"first_name": "Prénom",
|
||||||
"flat_rate": "Taux fixe (désactivé est le temps normal)",
|
"flat_rate": "Taux fixe (désactivé est le temps normal)",
|
||||||
"hire_date": "Date d'embauche",
|
"hire_date": "Date d'embauche",
|
||||||
|
|||||||
@@ -1955,6 +1955,7 @@
|
|||||||
- active
|
- active
|
||||||
- created_at
|
- created_at
|
||||||
- employee_number
|
- employee_number
|
||||||
|
- external_id
|
||||||
- first_name
|
- first_name
|
||||||
- flat_rate
|
- flat_rate
|
||||||
- hire_date
|
- hire_date
|
||||||
@@ -1973,6 +1974,7 @@
|
|||||||
- active
|
- active
|
||||||
- created_at
|
- created_at
|
||||||
- employee_number
|
- employee_number
|
||||||
|
- external_id
|
||||||
- first_name
|
- first_name
|
||||||
- flat_rate
|
- flat_rate
|
||||||
- hire_date
|
- hire_date
|
||||||
@@ -2001,6 +2003,7 @@
|
|||||||
- active
|
- active
|
||||||
- created_at
|
- created_at
|
||||||
- employee_number
|
- employee_number
|
||||||
|
- external_id
|
||||||
- first_name
|
- first_name
|
||||||
- flat_rate
|
- flat_rate
|
||||||
- hire_date
|
- hire_date
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."employees" add column "external_id" text
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."employees" add column "external_id" text
|
||||||
|
null;
|
||||||
Reference in New Issue
Block a user