@sofit/view-locale 1.85.0 → 1.86.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/coverage/jest/results.xml +6 -6
- package/dist/translations/index.d.ts +3 -1
- package/dist/translations/index.js +4 -0
- package/dist/translations/modules/change_history.d.ts +42 -0
- package/dist/translations/modules/change_history.js +44 -0
- package/dist/translations/modules/employee_change_history.d.ts +58 -0
- package/dist/translations/modules/employee_change_history.js +44 -0
- package/dist/translations/modules/vehicle_change_history.d.ts +0 -40
- package/dist/translations/modules/vehicle_change_history.js +0 -40
- package/lib/translations/index.ts +4 -0
- package/lib/translations/modules/change_history.ts +44 -0
- package/lib/translations/modules/employee_change_history.ts +55 -0
- package/lib/translations/modules/vehicle_change_history.ts +0 -41
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="
|
|
2
|
-
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-
|
|
3
|
-
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.
|
|
1
|
+
<testsuites name="Sofit view locale tests" tests="8" failures="0" time="2.551">
|
|
2
|
+
<testsuite name="Joi tests" errors="0" failures="0" skipped="0" timestamp="2020-04-07T14:07:06" time="1.82" tests="4">
|
|
3
|
+
<testcase classname="Joi tests should return default message" name="Joi tests should return default message" time="0.003">
|
|
4
4
|
</testcase>
|
|
5
5
|
<testcase classname="Joi tests should return non label message" name="Joi tests should return non label message" time="0.001">
|
|
6
6
|
</testcase>
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
<testcase classname="Joi tests should return translated label index" name="Joi tests should return translated label index" time="0.001">
|
|
10
10
|
</testcase>
|
|
11
11
|
</testsuite>
|
|
12
|
-
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-
|
|
13
|
-
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.
|
|
12
|
+
<testsuite name="Vehicle locale test" errors="0" failures="0" skipped="0" timestamp="2020-04-07T14:07:06" time="1.834" tests="4">
|
|
13
|
+
<testcase classname="Vehicle locale test Should get translations with reach" name="Vehicle locale test Should get translations with reach" time="0.004">
|
|
14
14
|
</testcase>
|
|
15
15
|
<testcase classname="Vehicle locale test Should replace correctly with reach" name="Vehicle locale test Should replace correctly with reach" time="0.001">
|
|
16
16
|
</testcase>
|
|
17
|
-
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0
|
|
17
|
+
<testcase classname="Vehicle locale test Should get translations with raw" name="Vehicle locale test Should get translations with raw" time="0">
|
|
18
18
|
</testcase>
|
|
19
19
|
<testcase classname="Vehicle locale test Should replace correctly with raw" name="Vehicle locale test Should replace correctly with raw" time="0.001">
|
|
20
20
|
</testcase>
|
|
@@ -4,6 +4,7 @@ import * as general from './common/general';
|
|
|
4
4
|
import * as inout from './integrations/inout';
|
|
5
5
|
import * as pipefy from './integrations/pipefy';
|
|
6
6
|
import * as cash_basis from './modules/cash_basis';
|
|
7
|
+
import * as change_history from './modules/change_history';
|
|
7
8
|
import * as checklist from './modules/checklist';
|
|
8
9
|
import * as checklist_group from './modules/checklist_group';
|
|
9
10
|
import * as checklist_group_item from './modules/checklist_group_item';
|
|
@@ -19,6 +20,7 @@ import * as customer from './modules/customer';
|
|
|
19
20
|
import * as driver_control from './modules/driver_control';
|
|
20
21
|
import * as driver_license_point from './modules/driver_license_point';
|
|
21
22
|
import * as employee from './modules/employee';
|
|
23
|
+
import * as employee_change_history from './modules/employee_change_history';
|
|
22
24
|
import * as employee_hiring_regime from './modules/employee_hiring_regime';
|
|
23
25
|
import * as employee_role from './modules/employee_role';
|
|
24
26
|
import * as expense from './modules/expense';
|
|
@@ -86,4 +88,4 @@ import * as warehouse from './modules/warehouse';
|
|
|
86
88
|
import * as warehouse_item from './modules/warehouse_item';
|
|
87
89
|
export { joi } from './common/joi';
|
|
88
90
|
export { databaseErrors } from './common/database-errors';
|
|
89
|
-
export { auth, benchmarking, general, inout, pipefy, cash_basis, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_event, vehicle_event_type, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
|
|
91
|
+
export { auth, benchmarking, general, inout, pipefy, cash_basis, change_history, checklist, checklist_group, checklist_group_item, checklist_group_option, checklist_model, checklist_reply, company, cost_center, cost_sharing, cost_sharing_entity, customer, driver_control, driver_license_point, employee, employee_change_history, employee_hiring_regime, employee_role, expense, fine, fine_qualification_integration_key, fine_qualification, fine_resource, foreseen_maintenance_plan_service_item, foreseen_service_order_item, gas_pump_control, gate, gate_appointment, gate_appointment_diary, item, leasing_contract, leasing_measurement, maintenance_plan, maintenance_plan_service, measurement_unit, night_transport, parameter, pendency, qualification_severity, release_notification, request_occurrence, route, service_order, solicitation, solicitation_comment, solicitation_history, solicitation_watcher, stock_transfer, stock_transfer_item, stock_entry_item, sub_system, subsidiary, supplier, system, tire_brand, tire_dimension, tire_drawing, transaction, trip, vehicle, vehicle_axes, vehicle_booking, vehicle_brand, vehicle_bulk, vehicle_bulk_keys, vehicle_change_history, vehicle_deactivation_cause, vehicle_due, vehicle_event, vehicle_event_type, vehicle_fuel, vehicle_layout, vehicle_leasing, vehicle_maintenance_plan, vehicle_maintenance_plan_service, vehicle_model, vehicle_model_version, vehicle_tag, warehouse, warehouse_item, city, state };
|
|
@@ -19,6 +19,8 @@ const pipefy = __importStar(require("./integrations/pipefy"));
|
|
|
19
19
|
exports.pipefy = pipefy;
|
|
20
20
|
const cash_basis = __importStar(require("./modules/cash_basis"));
|
|
21
21
|
exports.cash_basis = cash_basis;
|
|
22
|
+
const change_history = __importStar(require("./modules/change_history"));
|
|
23
|
+
exports.change_history = change_history;
|
|
22
24
|
const checklist = __importStar(require("./modules/checklist"));
|
|
23
25
|
exports.checklist = checklist;
|
|
24
26
|
const checklist_group = __importStar(require("./modules/checklist_group"));
|
|
@@ -49,6 +51,8 @@ const driver_license_point = __importStar(require("./modules/driver_license_poin
|
|
|
49
51
|
exports.driver_license_point = driver_license_point;
|
|
50
52
|
const employee = __importStar(require("./modules/employee"));
|
|
51
53
|
exports.employee = employee;
|
|
54
|
+
const employee_change_history = __importStar(require("./modules/employee_change_history"));
|
|
55
|
+
exports.employee_change_history = employee_change_history;
|
|
52
56
|
const employee_hiring_regime = __importStar(require("./modules/employee_hiring_regime"));
|
|
53
57
|
exports.employee_hiring_regime = employee_hiring_regime;
|
|
54
58
|
const employee_role = __importStar(require("./modules/employee_role"));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const current: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const messages: {
|
|
6
|
+
id_dont_match_type: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
start_date_must_be_lower_than_now: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
end_date_must_be_lower_than_now: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
must_not_have_newer_change_history: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
must_not_overleap_a_single_change_history: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
must_not_overleap_many_change_history: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
must_have_end_date_after_start_date: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
must_not_change_field_value: {
|
|
35
|
+
ptBR: string;
|
|
36
|
+
es: string;
|
|
37
|
+
};
|
|
38
|
+
unidentified_type: {
|
|
39
|
+
ptBR: string;
|
|
40
|
+
es: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.current = {
|
|
4
|
+
ptBR: '(Vigente)',
|
|
5
|
+
es: '(En vigor)'
|
|
6
|
+
};
|
|
7
|
+
exports.messages = {
|
|
8
|
+
id_dont_match_type: {
|
|
9
|
+
ptBR: 'Para registros do tipo {{type}} somente o campo {{field}} deve ser informado.',
|
|
10
|
+
es: 'Para los registros de tipo {{type}} solo se debe ingresar el campo {{field}}.'
|
|
11
|
+
},
|
|
12
|
+
start_date_must_be_lower_than_now: {
|
|
13
|
+
ptBR: 'A data/hora de início deve ser menor ou igual à data/hora atual.',
|
|
14
|
+
es: 'La fecha/hora de início debe ser menor o igual que la fecha/hora actual.'
|
|
15
|
+
},
|
|
16
|
+
end_date_must_be_lower_than_now: {
|
|
17
|
+
ptBR: 'A data/hora de término deve ser menor ou igual à data/hora atual.',
|
|
18
|
+
es: 'La fecha/hora de término debe ser menor o igual que la fecha/hora actual.'
|
|
19
|
+
},
|
|
20
|
+
must_not_have_newer_change_history: {
|
|
21
|
+
ptBR: 'Não é possível salvar o histórico sem uma data/hora de término, pois o {{table}} possui históricos de alteração de {{type}} posteriores.',
|
|
22
|
+
es: 'No puede guardar un historial sin una fecha/hora de finalización porque el {{table}} tiene historiales de cambios de {{type}} posteriores.'
|
|
23
|
+
},
|
|
24
|
+
must_not_overleap_a_single_change_history: {
|
|
25
|
+
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do {{table}} já existente: <br> {{histories}}',
|
|
26
|
+
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del {{table}} existente: <br> {{historories}}'
|
|
27
|
+
},
|
|
28
|
+
must_not_overleap_many_change_history: {
|
|
29
|
+
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com históricos de alteração de {{type}} do {{table}} já existentes: <br> {{histories}}',
|
|
30
|
+
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del {{table}} existente: <br> {{historories}}'
|
|
31
|
+
},
|
|
32
|
+
must_have_end_date_after_start_date: {
|
|
33
|
+
ptBR: 'A data de fim deve ser maior que a data de início.',
|
|
34
|
+
es: 'La fecha de finalización debe ser mayor que la fecha de inicio.'
|
|
35
|
+
},
|
|
36
|
+
must_not_change_field_value: {
|
|
37
|
+
ptBR: 'Não é possível alterar o {{field}} do histórico.',
|
|
38
|
+
es: 'No se puede cambiar el {{field}} del historial.'
|
|
39
|
+
},
|
|
40
|
+
unidentified_type: {
|
|
41
|
+
ptBR: 'Tipo {{type}} não identificado. Os tipos disponíveis são {{available_types}}.',
|
|
42
|
+
es: 'Tipo {{type}} no identificado. Los tipos disponibles son {{available_types}}.'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const name: {
|
|
2
|
+
ptBR: string;
|
|
3
|
+
es: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const fields: {
|
|
6
|
+
employee_id: {
|
|
7
|
+
ptBR: string;
|
|
8
|
+
es: string;
|
|
9
|
+
};
|
|
10
|
+
cost_center_id: {
|
|
11
|
+
ptBR: string;
|
|
12
|
+
es: string;
|
|
13
|
+
};
|
|
14
|
+
end_date: {
|
|
15
|
+
ptBR: string;
|
|
16
|
+
es: string;
|
|
17
|
+
};
|
|
18
|
+
start_date: {
|
|
19
|
+
ptBR: string;
|
|
20
|
+
es: string;
|
|
21
|
+
};
|
|
22
|
+
subsidiary_id: {
|
|
23
|
+
ptBR: string;
|
|
24
|
+
es: string;
|
|
25
|
+
};
|
|
26
|
+
type: {
|
|
27
|
+
ptBR: string;
|
|
28
|
+
es: string;
|
|
29
|
+
};
|
|
30
|
+
name: {
|
|
31
|
+
ptBR: string;
|
|
32
|
+
es: string;
|
|
33
|
+
};
|
|
34
|
+
external_relation: {
|
|
35
|
+
ptBR: string;
|
|
36
|
+
es: string;
|
|
37
|
+
};
|
|
38
|
+
external_id: {
|
|
39
|
+
ptBR: string;
|
|
40
|
+
es: string;
|
|
41
|
+
};
|
|
42
|
+
id: {
|
|
43
|
+
ptBR: string;
|
|
44
|
+
es: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare const enums: {
|
|
48
|
+
type: {
|
|
49
|
+
'cost_center': {
|
|
50
|
+
ptBR: string;
|
|
51
|
+
es: string;
|
|
52
|
+
};
|
|
53
|
+
'subsidiary': {
|
|
54
|
+
ptBR: string;
|
|
55
|
+
es: string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const entity_1 = require("../common/entity");
|
|
4
|
+
exports.name = {
|
|
5
|
+
ptBR: 'Histórico de Alterações do Colaborador',
|
|
6
|
+
es: 'Historial de Cambios del Colaborador'
|
|
7
|
+
};
|
|
8
|
+
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { employee_id: {
|
|
9
|
+
ptBR: 'Colaborador',
|
|
10
|
+
es: 'Colaborador'
|
|
11
|
+
}, cost_center_id: {
|
|
12
|
+
ptBR: 'Centro de custo',
|
|
13
|
+
es: 'Centro de costo'
|
|
14
|
+
}, end_date: {
|
|
15
|
+
ptBR: 'Data de término',
|
|
16
|
+
es: 'Fecha de término'
|
|
17
|
+
}, start_date: {
|
|
18
|
+
ptBR: 'Data de início',
|
|
19
|
+
es: 'Fecha de início'
|
|
20
|
+
}, subsidiary_id: {
|
|
21
|
+
ptBR: 'Filial',
|
|
22
|
+
es: 'Sucursal'
|
|
23
|
+
}, type: {
|
|
24
|
+
ptBR: 'Tipo',
|
|
25
|
+
es: 'Tipo'
|
|
26
|
+
}, name: {
|
|
27
|
+
ptBR: 'Nome',
|
|
28
|
+
es: 'Nombre'
|
|
29
|
+
}, external_relation: {
|
|
30
|
+
ptBR: 'Relação externa',
|
|
31
|
+
es: 'Interfaz externa'
|
|
32
|
+
} });
|
|
33
|
+
exports.enums = {
|
|
34
|
+
type: {
|
|
35
|
+
'cost_center': {
|
|
36
|
+
ptBR: 'Centro de custo',
|
|
37
|
+
es: 'Centro de costo'
|
|
38
|
+
},
|
|
39
|
+
'subsidiary': {
|
|
40
|
+
ptBR: 'Filial',
|
|
41
|
+
es: 'Sucursal'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -2,10 +2,6 @@ export declare const name: {
|
|
|
2
2
|
ptBR: string;
|
|
3
3
|
es: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const current: {
|
|
6
|
-
ptBR: string;
|
|
7
|
-
es: string;
|
|
8
|
-
};
|
|
9
5
|
export declare const fields: {
|
|
10
6
|
cost_center_id: {
|
|
11
7
|
ptBR: string;
|
|
@@ -53,46 +49,10 @@ export declare const fields: {
|
|
|
53
49
|
};
|
|
54
50
|
};
|
|
55
51
|
export declare const messages: {
|
|
56
|
-
id_dont_match_type: {
|
|
57
|
-
ptBR: string;
|
|
58
|
-
es: string;
|
|
59
|
-
};
|
|
60
52
|
must_have_active_employee: {
|
|
61
53
|
ptBR: string;
|
|
62
54
|
es: string;
|
|
63
55
|
};
|
|
64
|
-
start_date_must_be_lower_than_now: {
|
|
65
|
-
ptBR: string;
|
|
66
|
-
es: string;
|
|
67
|
-
};
|
|
68
|
-
end_date_must_be_lower_than_now: {
|
|
69
|
-
ptBR: string;
|
|
70
|
-
es: string;
|
|
71
|
-
};
|
|
72
|
-
must_not_have_newer_change_history: {
|
|
73
|
-
ptBR: string;
|
|
74
|
-
es: string;
|
|
75
|
-
};
|
|
76
|
-
must_not_overleap_a_single_change_history: {
|
|
77
|
-
ptBR: string;
|
|
78
|
-
es: string;
|
|
79
|
-
};
|
|
80
|
-
must_not_overleap_many_change_history: {
|
|
81
|
-
ptBR: string;
|
|
82
|
-
es: string;
|
|
83
|
-
};
|
|
84
|
-
must_have_end_date_after_start_date: {
|
|
85
|
-
ptBR: string;
|
|
86
|
-
es: string;
|
|
87
|
-
};
|
|
88
|
-
must_not_change_field_value: {
|
|
89
|
-
ptBR: string;
|
|
90
|
-
es: string;
|
|
91
|
-
};
|
|
92
|
-
unidentified_type: {
|
|
93
|
-
ptBR: string;
|
|
94
|
-
es: string;
|
|
95
|
-
};
|
|
96
56
|
};
|
|
97
57
|
export declare const enums: {
|
|
98
58
|
type: {
|
|
@@ -5,10 +5,6 @@ exports.name = {
|
|
|
5
5
|
ptBR: 'Histórico de Alterações do Veículo',
|
|
6
6
|
es: 'Historial de Cambios del Vehículo'
|
|
7
7
|
};
|
|
8
|
-
exports.current = {
|
|
9
|
-
ptBR: '(Vigente)',
|
|
10
|
-
es: '(En vigor)'
|
|
11
|
-
};
|
|
12
8
|
exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cost_center_id: {
|
|
13
9
|
ptBR: 'Centro de custo',
|
|
14
10
|
es: 'Centro de costo'
|
|
@@ -38,45 +34,9 @@ exports.fields = Object.assign({}, entity_1.ENTITY_COMMON, { cost_center_id: {
|
|
|
38
34
|
es: 'Interfaz externa'
|
|
39
35
|
} });
|
|
40
36
|
exports.messages = {
|
|
41
|
-
id_dont_match_type: {
|
|
42
|
-
ptBR: 'Para registros do tipo {{type}} somente o campo {{field}} deve ser informado.',
|
|
43
|
-
es: 'Para los registros de tipo {{type}} solo se debe ingresar el campo {{field}}.'
|
|
44
|
-
},
|
|
45
37
|
must_have_active_employee: {
|
|
46
38
|
ptBR: 'Não é possível salvar o histórico, pois o colaborador selecionado foi demitido em {{demission_date}}.',
|
|
47
39
|
es: 'El historial no se puede guardar porque el empleado seleccionado fue despedido el {{demission_date}}.'
|
|
48
|
-
},
|
|
49
|
-
start_date_must_be_lower_than_now: {
|
|
50
|
-
ptBR: 'A data/hora de início deve ser menor ou igual à data/hora atual.',
|
|
51
|
-
es: 'La fecha/hora de início debe ser menor o igual que la fecha/hora actual.'
|
|
52
|
-
},
|
|
53
|
-
end_date_must_be_lower_than_now: {
|
|
54
|
-
ptBR: 'A data/hora de término deve ser menor ou igual à data/hora atual.',
|
|
55
|
-
es: 'La fecha/hora de término debe ser menor o igual que la fecha/hora actual.'
|
|
56
|
-
},
|
|
57
|
-
must_not_have_newer_change_history: {
|
|
58
|
-
ptBR: 'Não é possível salvar o histórico sem uma data/hora de término, pois o veículo possui históricos de alteração de {{type}} posteriores.',
|
|
59
|
-
es: 'No puede guardar un historial sin una fecha/hora de finalización porque el vehículo tiene historiales de cambios de {{type}} posteriores.'
|
|
60
|
-
},
|
|
61
|
-
must_not_overleap_a_single_change_history: {
|
|
62
|
-
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do veículo já existente: <br> {{histories}}',
|
|
63
|
-
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del vehículo existente: <br> {{historories}}'
|
|
64
|
-
},
|
|
65
|
-
must_not_overleap_many_change_history: {
|
|
66
|
-
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com históricos de alteração de {{type}} do veículo já existentes: <br> {{histories}}',
|
|
67
|
-
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del vehículo existente: <br> {{historories}}'
|
|
68
|
-
},
|
|
69
|
-
must_have_end_date_after_start_date: {
|
|
70
|
-
ptBR: 'A data de fim deve ser maior que a data de início.',
|
|
71
|
-
es: 'La fecha de finalización debe ser mayor que la fecha de inicio.'
|
|
72
|
-
},
|
|
73
|
-
must_not_change_field_value: {
|
|
74
|
-
ptBR: 'Não é possível alterar o {{field}} do histórico.',
|
|
75
|
-
es: 'No se puede cambiar el {{field}} del historial.'
|
|
76
|
-
},
|
|
77
|
-
unidentified_type: {
|
|
78
|
-
ptBR: 'Tipo {{type}} não identificado. Os tipos disponíveis são Colaborador, Centro de Custo, Filial.',
|
|
79
|
-
es: 'Tipo {{type}} no identificado. Los tipos disponibles son Empleado, Centro de costos, Sucursal.'
|
|
80
40
|
}
|
|
81
41
|
};
|
|
82
42
|
exports.enums = {
|
|
@@ -4,6 +4,7 @@ import * as general from './common/general';
|
|
|
4
4
|
import * as inout from './integrations/inout';
|
|
5
5
|
import * as pipefy from './integrations/pipefy';
|
|
6
6
|
import * as cash_basis from './modules/cash_basis';
|
|
7
|
+
import * as change_history from './modules/change_history';
|
|
7
8
|
import * as checklist from './modules/checklist';
|
|
8
9
|
import * as checklist_group from './modules/checklist_group';
|
|
9
10
|
import * as checklist_group_item from './modules/checklist_group_item';
|
|
@@ -19,6 +20,7 @@ import * as customer from './modules/customer';
|
|
|
19
20
|
import * as driver_control from './modules/driver_control';
|
|
20
21
|
import * as driver_license_point from './modules/driver_license_point';
|
|
21
22
|
import * as employee from './modules/employee';
|
|
23
|
+
import * as employee_change_history from './modules/employee_change_history';
|
|
22
24
|
import * as employee_hiring_regime from './modules/employee_hiring_regime';
|
|
23
25
|
import * as employee_role from './modules/employee_role';
|
|
24
26
|
import * as expense from './modules/expense';
|
|
@@ -95,6 +97,7 @@ export {
|
|
|
95
97
|
inout,
|
|
96
98
|
pipefy,
|
|
97
99
|
cash_basis,
|
|
100
|
+
change_history,
|
|
98
101
|
checklist,
|
|
99
102
|
checklist_group,
|
|
100
103
|
checklist_group_item,
|
|
@@ -109,6 +112,7 @@ export {
|
|
|
109
112
|
driver_control,
|
|
110
113
|
driver_license_point,
|
|
111
114
|
employee,
|
|
115
|
+
employee_change_history,
|
|
112
116
|
employee_hiring_regime,
|
|
113
117
|
employee_role,
|
|
114
118
|
expense,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
export const current = {
|
|
3
|
+
ptBR: '(Vigente)',
|
|
4
|
+
es: '(En vigor)'
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const messages = {
|
|
8
|
+
id_dont_match_type: {
|
|
9
|
+
ptBR: 'Para registros do tipo {{type}} somente o campo {{field}} deve ser informado.',
|
|
10
|
+
es: 'Para los registros de tipo {{type}} solo se debe ingresar el campo {{field}}.'
|
|
11
|
+
},
|
|
12
|
+
start_date_must_be_lower_than_now: {
|
|
13
|
+
ptBR: 'A data/hora de início deve ser menor ou igual à data/hora atual.',
|
|
14
|
+
es: 'La fecha/hora de início debe ser menor o igual que la fecha/hora actual.'
|
|
15
|
+
},
|
|
16
|
+
end_date_must_be_lower_than_now: {
|
|
17
|
+
ptBR: 'A data/hora de término deve ser menor ou igual à data/hora atual.',
|
|
18
|
+
es: 'La fecha/hora de término debe ser menor o igual que la fecha/hora actual.'
|
|
19
|
+
},
|
|
20
|
+
must_not_have_newer_change_history: {
|
|
21
|
+
ptBR: 'Não é possível salvar o histórico sem uma data/hora de término, pois o {{table}} possui históricos de alteração de {{type}} posteriores.',
|
|
22
|
+
es: 'No puede guardar un historial sin una fecha/hora de finalización porque el {{table}} tiene historiales de cambios de {{type}} posteriores.'
|
|
23
|
+
},
|
|
24
|
+
must_not_overleap_a_single_change_history: {
|
|
25
|
+
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do {{table}} já existente: <br> {{histories}}',
|
|
26
|
+
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del {{table}} existente: <br> {{historories}}'
|
|
27
|
+
},
|
|
28
|
+
must_not_overleap_many_change_history: {
|
|
29
|
+
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com históricos de alteração de {{type}} do {{table}} já existentes: <br> {{histories}}',
|
|
30
|
+
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del {{table}} existente: <br> {{historories}}'
|
|
31
|
+
},
|
|
32
|
+
must_have_end_date_after_start_date: {
|
|
33
|
+
ptBR: 'A data de fim deve ser maior que a data de início.',
|
|
34
|
+
es: 'La fecha de finalización debe ser mayor que la fecha de inicio.'
|
|
35
|
+
},
|
|
36
|
+
must_not_change_field_value: {
|
|
37
|
+
ptBR: 'Não é possível alterar o {{field}} do histórico.',
|
|
38
|
+
es: 'No se puede cambiar el {{field}} del historial.'
|
|
39
|
+
},
|
|
40
|
+
unidentified_type: {
|
|
41
|
+
ptBR: 'Tipo {{type}} não identificado. Os tipos disponíveis são {{available_types}}.',
|
|
42
|
+
es: 'Tipo {{type}} no identificado. Los tipos disponibles son {{available_types}}.'
|
|
43
|
+
}
|
|
44
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ENTITY_COMMON } from '../common/entity';
|
|
2
|
+
|
|
3
|
+
export const name = {
|
|
4
|
+
ptBR: 'Histórico de Alterações do Colaborador',
|
|
5
|
+
es: 'Historial de Cambios del Colaborador'
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const fields = {
|
|
9
|
+
...ENTITY_COMMON,
|
|
10
|
+
employee_id: {
|
|
11
|
+
ptBR: 'Colaborador',
|
|
12
|
+
es: 'Colaborador'
|
|
13
|
+
},
|
|
14
|
+
cost_center_id: {
|
|
15
|
+
ptBR: 'Centro de custo',
|
|
16
|
+
es: 'Centro de costo'
|
|
17
|
+
},
|
|
18
|
+
end_date: {
|
|
19
|
+
ptBR: 'Data de término',
|
|
20
|
+
es: 'Fecha de término'
|
|
21
|
+
},
|
|
22
|
+
start_date: {
|
|
23
|
+
ptBR: 'Data de início',
|
|
24
|
+
es: 'Fecha de início'
|
|
25
|
+
},
|
|
26
|
+
subsidiary_id: {
|
|
27
|
+
ptBR: 'Filial',
|
|
28
|
+
es: 'Sucursal'
|
|
29
|
+
},
|
|
30
|
+
type: {
|
|
31
|
+
ptBR: 'Tipo',
|
|
32
|
+
es: 'Tipo'
|
|
33
|
+
},
|
|
34
|
+
name: {
|
|
35
|
+
ptBR: 'Nome',
|
|
36
|
+
es: 'Nombre'
|
|
37
|
+
},
|
|
38
|
+
external_relation: {
|
|
39
|
+
ptBR: 'Relação externa',
|
|
40
|
+
es: 'Interfaz externa'
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export const enums = {
|
|
45
|
+
type: {
|
|
46
|
+
'cost_center': {
|
|
47
|
+
ptBR: 'Centro de custo',
|
|
48
|
+
es: 'Centro de costo'
|
|
49
|
+
},
|
|
50
|
+
'subsidiary': {
|
|
51
|
+
ptBR: 'Filial',
|
|
52
|
+
es: 'Sucursal'
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
@@ -5,11 +5,6 @@ export const name = {
|
|
|
5
5
|
es: 'Historial de Cambios del Vehículo'
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
export const current = {
|
|
9
|
-
ptBR: '(Vigente)',
|
|
10
|
-
es: '(En vigor)'
|
|
11
|
-
};
|
|
12
|
-
|
|
13
8
|
export const fields = {
|
|
14
9
|
...ENTITY_COMMON,
|
|
15
10
|
cost_center_id: {
|
|
@@ -51,45 +46,9 @@ export const fields = {
|
|
|
51
46
|
};
|
|
52
47
|
|
|
53
48
|
export const messages = {
|
|
54
|
-
id_dont_match_type: {
|
|
55
|
-
ptBR: 'Para registros do tipo {{type}} somente o campo {{field}} deve ser informado.',
|
|
56
|
-
es: 'Para los registros de tipo {{type}} solo se debe ingresar el campo {{field}}.'
|
|
57
|
-
},
|
|
58
49
|
must_have_active_employee: {
|
|
59
50
|
ptBR: 'Não é possível salvar o histórico, pois o colaborador selecionado foi demitido em {{demission_date}}.',
|
|
60
51
|
es: 'El historial no se puede guardar porque el empleado seleccionado fue despedido el {{demission_date}}.'
|
|
61
|
-
},
|
|
62
|
-
start_date_must_be_lower_than_now: {
|
|
63
|
-
ptBR: 'A data/hora de início deve ser menor ou igual à data/hora atual.',
|
|
64
|
-
es: 'La fecha/hora de início debe ser menor o igual que la fecha/hora actual.'
|
|
65
|
-
},
|
|
66
|
-
end_date_must_be_lower_than_now: {
|
|
67
|
-
ptBR: 'A data/hora de término deve ser menor ou igual à data/hora atual.',
|
|
68
|
-
es: 'La fecha/hora de término debe ser menor o igual que la fecha/hora actual.'
|
|
69
|
-
},
|
|
70
|
-
must_not_have_newer_change_history: {
|
|
71
|
-
ptBR: 'Não é possível salvar o histórico sem uma data/hora de término, pois o veículo possui históricos de alteração de {{type}} posteriores.',
|
|
72
|
-
es: 'No puede guardar un historial sin una fecha/hora de finalización porque el vehículo tiene historiales de cambios de {{type}} posteriores.'
|
|
73
|
-
},
|
|
74
|
-
must_not_overleap_a_single_change_history: {
|
|
75
|
-
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com um histórico de alteração de {{type}} do veículo já existente: <br> {{histories}}',
|
|
76
|
-
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del vehículo existente: <br> {{historories}}'
|
|
77
|
-
},
|
|
78
|
-
must_not_overleap_many_change_history: {
|
|
79
|
-
ptBR: 'Não é possível salvar o histórico, pois o período informado conflita com históricos de alteração de {{type}} do veículo já existentes: <br> {{histories}}',
|
|
80
|
-
es: 'No es posible guardar el historial, ya que el período ingresado está en conflicto con un historial de cambios de {{type}} del vehículo existente: <br> {{historories}}'
|
|
81
|
-
},
|
|
82
|
-
must_have_end_date_after_start_date: {
|
|
83
|
-
ptBR: 'A data de fim deve ser maior que a data de início.',
|
|
84
|
-
es: 'La fecha de finalización debe ser mayor que la fecha de inicio.'
|
|
85
|
-
},
|
|
86
|
-
must_not_change_field_value: {
|
|
87
|
-
ptBR: 'Não é possível alterar o {{field}} do histórico.',
|
|
88
|
-
es: 'No se puede cambiar el {{field}} del historial.'
|
|
89
|
-
},
|
|
90
|
-
unidentified_type: {
|
|
91
|
-
ptBR: 'Tipo {{type}} não identificado. Os tipos disponíveis são Colaborador, Centro de Custo, Filial.',
|
|
92
|
-
es: 'Tipo {{type}} no identificado. Los tipos disponibles son Empleado, Centro de costos, Sucursal.'
|
|
93
52
|
}
|
|
94
53
|
};
|
|
95
54
|
|