@getsoren/shared-module 2.54.0 → 2.55.0
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/dist/events/catalog/clientEvents.d.ts +245 -0
- package/dist/events/catalog/supplierEvents.d.ts +3 -0
- package/dist/events/constants.d.ts +16 -0
- package/dist/events/hooks/useEventDeclaration/useEventDeclaration.d.ts +40 -0
- package/dist/events/hooks/useEventDeclaration/useEventDeclaration.test.d.ts +1 -0
- package/dist/events/index.d.ts +19 -0
- package/dist/events/locales/ar.d.ts +3 -0
- package/dist/events/locales/de.d.ts +3 -0
- package/dist/events/locales/en.d.ts +3 -0
- package/dist/events/locales/es.d.ts +3 -0
- package/dist/events/locales/fr.d.ts +166 -0
- package/dist/events/locales/it.d.ts +3 -0
- package/dist/events/locales/locales.d.ts +3 -0
- package/dist/events/locales/pt.d.ts +3 -0
- package/dist/events/tenants/bouygues/bouygues.d.ts +3 -0
- package/dist/events/tenants/index.d.ts +11 -0
- package/dist/events/tenants/tenants.test.d.ts +1 -0
- package/dist/events/types.d.ts +164 -0
- package/dist/events/utils/amounts/amounts.d.ts +18 -0
- package/dist/events/utils/payload/payload.d.ts +27 -0
- package/dist/events/utils/payload/payload.test.d.ts +1 -0
- package/dist/events/utils/readEvent/readEvent.d.ts +18 -0
- package/dist/events/utils/readEvent/readEvent.test.d.ts +1 -0
- package/dist/events/utils/steps/steps.d.ts +14 -0
- package/dist/events/utils/steps/steps.test.d.ts +1 -0
- package/dist/events.js +1936 -0
- package/package.json +6 -1
package/dist/events.js
ADDED
|
@@ -0,0 +1,1936 @@
|
|
|
1
|
+
import { useMemo as e, useState as t } from "react";
|
|
2
|
+
//#region src/events/constants.ts
|
|
3
|
+
var n = "eventDeclaration", r = "soren-event", i = 2, a = {
|
|
4
|
+
date: "date",
|
|
5
|
+
dates: "dates",
|
|
6
|
+
description: "description",
|
|
7
|
+
intervention: "intervention",
|
|
8
|
+
reason: "reason",
|
|
9
|
+
reBillRatio: "re_bill_ratio",
|
|
10
|
+
unitPrice: "unitPrice"
|
|
11
|
+
}, o = "inventory", s = {
|
|
12
|
+
breakage: {
|
|
13
|
+
amountGate: "known",
|
|
14
|
+
dates: "single",
|
|
15
|
+
dayHint: "breakage",
|
|
16
|
+
hasIntervention: !0,
|
|
17
|
+
id: "breakage",
|
|
18
|
+
price: "amount",
|
|
19
|
+
questions: { reason: "breakageKind" },
|
|
20
|
+
reason: "break_repair"
|
|
21
|
+
},
|
|
22
|
+
breakdown: {
|
|
23
|
+
amountGate: "known",
|
|
24
|
+
dates: "range",
|
|
25
|
+
hasIntervention: !0,
|
|
26
|
+
id: "breakdown",
|
|
27
|
+
price: "credit",
|
|
28
|
+
questions: {
|
|
29
|
+
dates: "breakdownDays",
|
|
30
|
+
reason: "breakdownKind"
|
|
31
|
+
},
|
|
32
|
+
reason: "breakdown"
|
|
33
|
+
},
|
|
34
|
+
delivery_problem: {
|
|
35
|
+
amountGate: "known",
|
|
36
|
+
dates: "single",
|
|
37
|
+
dayHint: "deliveryProblem",
|
|
38
|
+
id: "delivery_problem",
|
|
39
|
+
price: "amount",
|
|
40
|
+
questions: { reason: "deliveryProblemKind" },
|
|
41
|
+
reasons: [
|
|
42
|
+
"no_show",
|
|
43
|
+
"delay_in_delivery",
|
|
44
|
+
"forgetting_recover",
|
|
45
|
+
"other_delivery"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
document_conformity: {
|
|
49
|
+
id: "document_conformity",
|
|
50
|
+
questions: { reason: "documentKind" },
|
|
51
|
+
reason: "document_compliance",
|
|
52
|
+
reasons: ["machine", "operator"]
|
|
53
|
+
},
|
|
54
|
+
hours_record: {
|
|
55
|
+
billingType: "DELTA",
|
|
56
|
+
closesOnSubmit: !0,
|
|
57
|
+
dates: "range",
|
|
58
|
+
fields: [{
|
|
59
|
+
name: "quantity",
|
|
60
|
+
required: !0,
|
|
61
|
+
type: "number"
|
|
62
|
+
}, {
|
|
63
|
+
name: "hours_record_number",
|
|
64
|
+
type: "text"
|
|
65
|
+
}],
|
|
66
|
+
id: "hours_record",
|
|
67
|
+
reason: "hours_record"
|
|
68
|
+
},
|
|
69
|
+
immobilisation: {
|
|
70
|
+
closesOnSubmit: !0,
|
|
71
|
+
dates: "range",
|
|
72
|
+
id: "immobilisation",
|
|
73
|
+
price: "credit",
|
|
74
|
+
reason: "immobilisation"
|
|
75
|
+
},
|
|
76
|
+
[o]: {
|
|
77
|
+
closesOnSubmit: !0,
|
|
78
|
+
id: o,
|
|
79
|
+
photos: "focus",
|
|
80
|
+
reason: o
|
|
81
|
+
},
|
|
82
|
+
machine_assignment: {
|
|
83
|
+
closesOnSubmit: !0,
|
|
84
|
+
fields: [
|
|
85
|
+
{
|
|
86
|
+
name: "assigned_machine",
|
|
87
|
+
type: "text"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "model",
|
|
91
|
+
type: "text"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "supplier_reference",
|
|
95
|
+
type: "text"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "serial_number",
|
|
99
|
+
type: "text"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "code",
|
|
103
|
+
type: "text"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
id: "machine_assignment",
|
|
107
|
+
reason: "Affectation machine"
|
|
108
|
+
},
|
|
109
|
+
material_usage: {
|
|
110
|
+
amountGate: "known",
|
|
111
|
+
dates: "single",
|
|
112
|
+
dayHint: "problem",
|
|
113
|
+
id: "material_usage",
|
|
114
|
+
price: "amount",
|
|
115
|
+
questions: { reason: "materialUsageKind" },
|
|
116
|
+
reason: "undeclared_use"
|
|
117
|
+
},
|
|
118
|
+
n1_control: {
|
|
119
|
+
checks: [
|
|
120
|
+
"vgp_control",
|
|
121
|
+
"ce_conformity",
|
|
122
|
+
"maintenance_log",
|
|
123
|
+
"operator_skills"
|
|
124
|
+
],
|
|
125
|
+
closesOnSubmit: !0,
|
|
126
|
+
id: "n1_control",
|
|
127
|
+
reason: "n1_control"
|
|
128
|
+
},
|
|
129
|
+
n2_control: {
|
|
130
|
+
checks: [
|
|
131
|
+
"machine_matches_order",
|
|
132
|
+
"machine_good_condition",
|
|
133
|
+
"expected_operator",
|
|
134
|
+
"documents_on_delivery"
|
|
135
|
+
],
|
|
136
|
+
dates: "single",
|
|
137
|
+
dayHint: "control",
|
|
138
|
+
id: "n2_control",
|
|
139
|
+
photos: "focus",
|
|
140
|
+
reason: "n2_control"
|
|
141
|
+
},
|
|
142
|
+
n3_control: {
|
|
143
|
+
checks: [
|
|
144
|
+
"ce_plate",
|
|
145
|
+
"operator_present",
|
|
146
|
+
"operator_papers",
|
|
147
|
+
"last_inspection_report",
|
|
148
|
+
"ce_declaration",
|
|
149
|
+
"user_manual",
|
|
150
|
+
"machine_compliant"
|
|
151
|
+
],
|
|
152
|
+
closesOnSubmit: !0,
|
|
153
|
+
dates: "single",
|
|
154
|
+
dayHint: "control",
|
|
155
|
+
fields: [
|
|
156
|
+
{
|
|
157
|
+
name: "site_escort",
|
|
158
|
+
type: "text"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "serial_number",
|
|
162
|
+
required: !0,
|
|
163
|
+
type: "text"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
name: "inspector_opinion",
|
|
167
|
+
required: !0,
|
|
168
|
+
type: "text"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
id: "n3_control",
|
|
172
|
+
reason: "n3_control"
|
|
173
|
+
},
|
|
174
|
+
operator_change: {
|
|
175
|
+
closesOnSubmit: !0,
|
|
176
|
+
dates: "single",
|
|
177
|
+
dayHint: "operatorChange",
|
|
178
|
+
fields: [{
|
|
179
|
+
name: "new_operator_name",
|
|
180
|
+
required: !0,
|
|
181
|
+
type: "text"
|
|
182
|
+
}],
|
|
183
|
+
id: "operator_change",
|
|
184
|
+
reason: "operator_change"
|
|
185
|
+
},
|
|
186
|
+
other: {
|
|
187
|
+
amountGate: "known",
|
|
188
|
+
dates: "single",
|
|
189
|
+
dayHint: "event",
|
|
190
|
+
hasTitle: !0,
|
|
191
|
+
id: "other",
|
|
192
|
+
price: "amount"
|
|
193
|
+
},
|
|
194
|
+
other_material: {
|
|
195
|
+
amountGate: "known",
|
|
196
|
+
dates: "single",
|
|
197
|
+
dayHint: "problem",
|
|
198
|
+
hasTitle: !0,
|
|
199
|
+
id: "other_material",
|
|
200
|
+
price: "amount"
|
|
201
|
+
},
|
|
202
|
+
other_request: {
|
|
203
|
+
closesOnSubmit: !0,
|
|
204
|
+
dates: "single",
|
|
205
|
+
dayHint: "request",
|
|
206
|
+
hasTitle: !0,
|
|
207
|
+
id: "other_request",
|
|
208
|
+
price: "amount"
|
|
209
|
+
},
|
|
210
|
+
robbery: {
|
|
211
|
+
amountGate: "known",
|
|
212
|
+
dates: "single",
|
|
213
|
+
dayHint: "robbery",
|
|
214
|
+
id: "robbery",
|
|
215
|
+
price: "amount",
|
|
216
|
+
questions: {
|
|
217
|
+
dates: "robberyDay",
|
|
218
|
+
reason: "robberyKind"
|
|
219
|
+
},
|
|
220
|
+
reason: "robbery_article"
|
|
221
|
+
},
|
|
222
|
+
weather: {
|
|
223
|
+
dates: "range",
|
|
224
|
+
id: "weather",
|
|
225
|
+
price: "credit",
|
|
226
|
+
questions: { dates: "weatherDays" },
|
|
227
|
+
reason: "weather"
|
|
228
|
+
}
|
|
229
|
+
}, c = {
|
|
230
|
+
admin_request: {
|
|
231
|
+
events: ["other_request"],
|
|
232
|
+
id: "admin_request"
|
|
233
|
+
},
|
|
234
|
+
controls: {
|
|
235
|
+
events: [
|
|
236
|
+
"n1_control",
|
|
237
|
+
"n2_control",
|
|
238
|
+
"n3_control"
|
|
239
|
+
],
|
|
240
|
+
id: "controls"
|
|
241
|
+
},
|
|
242
|
+
delivery: {
|
|
243
|
+
events: ["delivery_problem"],
|
|
244
|
+
id: "delivery"
|
|
245
|
+
},
|
|
246
|
+
documents: {
|
|
247
|
+
events: ["document_conformity"],
|
|
248
|
+
id: "documents"
|
|
249
|
+
},
|
|
250
|
+
[o]: {
|
|
251
|
+
events: [o],
|
|
252
|
+
id: o
|
|
253
|
+
},
|
|
254
|
+
machine_problem: {
|
|
255
|
+
events: [
|
|
256
|
+
"breakdown",
|
|
257
|
+
"breakage",
|
|
258
|
+
"material_usage",
|
|
259
|
+
"other_material",
|
|
260
|
+
"robbery"
|
|
261
|
+
],
|
|
262
|
+
id: "machine_problem"
|
|
263
|
+
},
|
|
264
|
+
operator_machine: {
|
|
265
|
+
events: [
|
|
266
|
+
"machine_assignment",
|
|
267
|
+
"operator_change",
|
|
268
|
+
"hours_record"
|
|
269
|
+
],
|
|
270
|
+
id: "operator_machine"
|
|
271
|
+
},
|
|
272
|
+
other: {
|
|
273
|
+
events: ["other"],
|
|
274
|
+
id: "other"
|
|
275
|
+
},
|
|
276
|
+
stoppage: {
|
|
277
|
+
events: ["weather", "immobilisation"],
|
|
278
|
+
id: "stoppage"
|
|
279
|
+
}
|
|
280
|
+
}, l = {
|
|
281
|
+
events: [
|
|
282
|
+
s.weather,
|
|
283
|
+
s[o],
|
|
284
|
+
s.breakdown,
|
|
285
|
+
s.breakage,
|
|
286
|
+
s.delivery_problem,
|
|
287
|
+
s.immobilisation,
|
|
288
|
+
{
|
|
289
|
+
...s.document_conformity,
|
|
290
|
+
reasonDetail: "document_type"
|
|
291
|
+
},
|
|
292
|
+
s.material_usage,
|
|
293
|
+
s.robbery,
|
|
294
|
+
s.other
|
|
295
|
+
],
|
|
296
|
+
groups: [
|
|
297
|
+
c.machine_problem,
|
|
298
|
+
c.stoppage,
|
|
299
|
+
c[o],
|
|
300
|
+
c.delivery,
|
|
301
|
+
c.documents,
|
|
302
|
+
c.other
|
|
303
|
+
],
|
|
304
|
+
id: "client",
|
|
305
|
+
pricing: {
|
|
306
|
+
asksReBillRatio: !1,
|
|
307
|
+
showsPrice: !0
|
|
308
|
+
},
|
|
309
|
+
side: "client"
|
|
310
|
+
}, u = {
|
|
311
|
+
events: [
|
|
312
|
+
{
|
|
313
|
+
amountGate: "billed",
|
|
314
|
+
hasIntervention: !0,
|
|
315
|
+
id: "machine_problem",
|
|
316
|
+
photos: "first",
|
|
317
|
+
price: "amount",
|
|
318
|
+
questions: {
|
|
319
|
+
details: "photos",
|
|
320
|
+
reason: "machineProblemKind"
|
|
321
|
+
},
|
|
322
|
+
reasons: ["break_repair", "breakdown"]
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
endDates: {
|
|
326
|
+
booking_end: {
|
|
327
|
+
dayHint: "lastDay",
|
|
328
|
+
from: "orderStart",
|
|
329
|
+
name: "final_toDate",
|
|
330
|
+
question: "lastDay"
|
|
331
|
+
},
|
|
332
|
+
booking_extension: {
|
|
333
|
+
dayHint: "newEnd",
|
|
334
|
+
from: "afterPlannedEnd",
|
|
335
|
+
name: "new_toDate",
|
|
336
|
+
question: "newEnd"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
id: "end_booking",
|
|
340
|
+
photos: "none",
|
|
341
|
+
questions: {
|
|
342
|
+
details: "comment",
|
|
343
|
+
reason: "endKind"
|
|
344
|
+
},
|
|
345
|
+
reasons: ["booking_end", "booking_extension"]
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
id: o,
|
|
349
|
+
photos: "first",
|
|
350
|
+
questions: {
|
|
351
|
+
details: "photos",
|
|
352
|
+
reason: "inventoryKind"
|
|
353
|
+
},
|
|
354
|
+
reason: o,
|
|
355
|
+
reasonDetail: "inventory_type",
|
|
356
|
+
reasons: ["inventory_departure", "inventory_reception"]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
amountGate: "billed",
|
|
360
|
+
id: "delivery_problem",
|
|
361
|
+
price: "amount",
|
|
362
|
+
questions: {
|
|
363
|
+
details: "comment",
|
|
364
|
+
reason: "whatHappened"
|
|
365
|
+
},
|
|
366
|
+
reasons: [
|
|
367
|
+
"delay_in_delivery",
|
|
368
|
+
"forgetting_recover",
|
|
369
|
+
"other_delivery"
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
dates: "range",
|
|
374
|
+
id: "stoppage",
|
|
375
|
+
price: "credit",
|
|
376
|
+
questions: {
|
|
377
|
+
details: "comment",
|
|
378
|
+
reason: "stoppageKind"
|
|
379
|
+
},
|
|
380
|
+
reasons: ["immobilisation", "weather"]
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
amountGate: "billed",
|
|
384
|
+
id: "other",
|
|
385
|
+
price: "amount",
|
|
386
|
+
questions: {
|
|
387
|
+
details: "comment",
|
|
388
|
+
reason: "whatHappened"
|
|
389
|
+
},
|
|
390
|
+
reasons: ["undeclared_use", "robbery_article"]
|
|
391
|
+
}
|
|
392
|
+
],
|
|
393
|
+
groups: [
|
|
394
|
+
{
|
|
395
|
+
events: ["machine_problem"],
|
|
396
|
+
id: "machine_problem"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
events: ["end_booking"],
|
|
400
|
+
id: "end_booking"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
events: [o],
|
|
404
|
+
id: o
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
events: ["delivery_problem"],
|
|
408
|
+
id: "delivery"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
events: ["stoppage"],
|
|
412
|
+
id: "stoppage"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
events: ["other"],
|
|
416
|
+
id: "other"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
id: "supplier",
|
|
420
|
+
pricing: {
|
|
421
|
+
asksReBillRatio: !1,
|
|
422
|
+
showsPrice: !0
|
|
423
|
+
},
|
|
424
|
+
side: "supplier"
|
|
425
|
+
}, d = (e) => {
|
|
426
|
+
let t = Number(e.trim().replace(",", "."));
|
|
427
|
+
return e.trim() && Number.isFinite(t) ? t : null;
|
|
428
|
+
}, f = (e, t) => {
|
|
429
|
+
let n = d(t.amount);
|
|
430
|
+
return !e.price || e.amountGate && !t.amountGate || n === null ? null : e.price === "credit" ? -Math.abs(n) : n;
|
|
431
|
+
}, p = (e, t, n) => {
|
|
432
|
+
let r = e ? f(e, t) : null, i = e?.dates === "range" ? n : 1;
|
|
433
|
+
return {
|
|
434
|
+
billableDays: i,
|
|
435
|
+
hasNothingToBill: e?.price === "credit" && i === 0,
|
|
436
|
+
total: r === null ? null : r * i,
|
|
437
|
+
unitPrice: r
|
|
438
|
+
};
|
|
439
|
+
}, m = ({ groups: e, events: t }) => e.flatMap((e) => {
|
|
440
|
+
let n = t.filter(({ id: t }) => e.events.includes(t));
|
|
441
|
+
return n.length ? [{
|
|
442
|
+
...e,
|
|
443
|
+
events: n
|
|
444
|
+
}] : [];
|
|
445
|
+
}), h = (e, t) => e.endDates?.[t], g = (e, t, n, r) => [
|
|
446
|
+
"kind",
|
|
447
|
+
...(e?.events.length ?? 0) > 1 ? ["event"] : [],
|
|
448
|
+
...t?.reasons?.length ? ["reason"] : [],
|
|
449
|
+
...t?.dates || t && h(t, n.reason) ? ["dates"] : [],
|
|
450
|
+
...t?.checks?.length ? ["checks"] : [],
|
|
451
|
+
...t?.hasTitle || t?.fields?.length ? ["fields"] : [],
|
|
452
|
+
...r && t?.price && t.amountGate ? ["amountGate"] : [],
|
|
453
|
+
...r && t?.price && (!t.amountGate || n.amountGate) ? ["amount"] : [],
|
|
454
|
+
...t ? ["details"] : []
|
|
455
|
+
], _ = (e, t, n = !1) => e.find((e) => e !== "kind" && e !== "event" && (n || e !== "reason" || !t.reason)) ?? "details", v = (e, t, n) => {
|
|
456
|
+
switch (e) {
|
|
457
|
+
case "reason": return !!n.reason;
|
|
458
|
+
case "dates": return !!(n.dates.fromDate && n.dates.toDate);
|
|
459
|
+
case "fields": return (!t.hasTitle || !!n.title.trim()) && (t.fields ?? []).every(({ name: e, required: t }) => !t || !!n.fields[e]?.trim());
|
|
460
|
+
case "amountGate": return n.amountGate !== void 0;
|
|
461
|
+
case "amount": return !!f(t, n);
|
|
462
|
+
default: return !0;
|
|
463
|
+
}
|
|
464
|
+
}, y = (e, t) => e.hasTitle ? t.title.trim() : e.reasonDetail ? e.reason ?? "" : t.reason || (e.reason ?? ""), b = (e, t, n) => {
|
|
465
|
+
let r = y(e, t);
|
|
466
|
+
if (e.hasTitle) return {
|
|
467
|
+
label: n("values.title"),
|
|
468
|
+
name: a.reason,
|
|
469
|
+
tag: "reason",
|
|
470
|
+
type: "text",
|
|
471
|
+
value: r
|
|
472
|
+
};
|
|
473
|
+
let i = !e.reasonDetail && e.reasons?.includes(r) ? `reasons.${r}` : `events.${e.id}`;
|
|
474
|
+
return {
|
|
475
|
+
label: n("values.reason"),
|
|
476
|
+
name: a.reason,
|
|
477
|
+
tag: "reason",
|
|
478
|
+
type: "radio",
|
|
479
|
+
value: {
|
|
480
|
+
label: n(i),
|
|
481
|
+
value: r
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
}, x = (e, { dates: { fromDate: t, toDate: n }, reason: r }, i) => {
|
|
485
|
+
let o = h(e, r);
|
|
486
|
+
return t && n ? o ? [{
|
|
487
|
+
label: i(`values.${o.name}`),
|
|
488
|
+
name: o.name,
|
|
489
|
+
type: "date",
|
|
490
|
+
value: t
|
|
491
|
+
}] : e.dates === "range" ? [{
|
|
492
|
+
label: i("values.dates"),
|
|
493
|
+
name: a.dates,
|
|
494
|
+
type: "dateRange",
|
|
495
|
+
value: [t, n]
|
|
496
|
+
}] : e.dates === "single" ? [{
|
|
497
|
+
label: i("values.date"),
|
|
498
|
+
name: a.date,
|
|
499
|
+
type: "date",
|
|
500
|
+
value: t
|
|
501
|
+
}] : [] : [];
|
|
502
|
+
}, S = (e, t) => {
|
|
503
|
+
let n = e === "number" ? d(t) : null;
|
|
504
|
+
return n === null ? t.trim() : String(n);
|
|
505
|
+
}, C = "dedicated", w = (e, t) => ({
|
|
506
|
+
eventId: t,
|
|
507
|
+
funnel: C,
|
|
508
|
+
side: e,
|
|
509
|
+
source: r,
|
|
510
|
+
version: 2
|
|
511
|
+
}), T = (e) => typeof e == "object" && !!e && "source" in e && e.source === "soren-event" && "eventId" in e && typeof e.eventId == "string", E = ({ funnel: e, event: t, answers: n, translate: i, bookingItemId: o, withPrice: s, withReBillRatio: c = e.pricing.asksReBillRatio }) => {
|
|
512
|
+
let { fromDate: l, toDate: u } = n.dates, p = !!(t.dates && l && u), m = s ? f(t, n) : null, h = d(n.reBillRatio), g = n.description.trim(), _ = t.billingType === "DELTA", v = d(n.fields.quantity ?? ""), y = [
|
|
513
|
+
b(t, n, i),
|
|
514
|
+
...t.reasonDetail && n.reason ? [{
|
|
515
|
+
label: i(`values.${t.reasonDetail}`),
|
|
516
|
+
name: t.reasonDetail,
|
|
517
|
+
type: "radio",
|
|
518
|
+
value: {
|
|
519
|
+
label: i(`reasons.${n.reason}`),
|
|
520
|
+
value: n.reason
|
|
521
|
+
}
|
|
522
|
+
}] : [],
|
|
523
|
+
...x(t, n, i),
|
|
524
|
+
...g ? [{
|
|
525
|
+
label: i("values.description"),
|
|
526
|
+
name: a.description,
|
|
527
|
+
tag: "description",
|
|
528
|
+
type: "text",
|
|
529
|
+
value: g
|
|
530
|
+
}] : [],
|
|
531
|
+
...(t.checks ?? []).map((e) => ({
|
|
532
|
+
label: i(`checks.${e}`),
|
|
533
|
+
name: e,
|
|
534
|
+
type: "checkbox",
|
|
535
|
+
value: !!n.checks[e]
|
|
536
|
+
})),
|
|
537
|
+
...(t.fields ?? []).filter(({ name: e }) => !!n.fields[e]?.trim()).map(({ name: e, type: t }) => ({
|
|
538
|
+
label: i(`fields.${e}`),
|
|
539
|
+
name: e,
|
|
540
|
+
type: t,
|
|
541
|
+
value: S(t, n.fields[e])
|
|
542
|
+
})),
|
|
543
|
+
...t.hasIntervention ? [{
|
|
544
|
+
label: i("values.intervention"),
|
|
545
|
+
name: a.intervention,
|
|
546
|
+
type: "checkbox",
|
|
547
|
+
value: n.intervention
|
|
548
|
+
}] : [],
|
|
549
|
+
...m === null ? [] : [{
|
|
550
|
+
label: i("values.amount"),
|
|
551
|
+
name: a.unitPrice,
|
|
552
|
+
type: "number",
|
|
553
|
+
value: String(m)
|
|
554
|
+
}],
|
|
555
|
+
...c && m !== null && h !== null ? [{
|
|
556
|
+
label: i("values.re_bill_ratio"),
|
|
557
|
+
name: a.reBillRatio,
|
|
558
|
+
type: "number",
|
|
559
|
+
value: String(h)
|
|
560
|
+
}] : []
|
|
561
|
+
];
|
|
562
|
+
return {
|
|
563
|
+
billingType: _ ? "DELTA" : "PER_DAY",
|
|
564
|
+
bookingItemId: o || null,
|
|
565
|
+
dates: p ? [l, u] : null,
|
|
566
|
+
unitPrice: m,
|
|
567
|
+
workflow: {
|
|
568
|
+
eventId: t.id,
|
|
569
|
+
funnel: e.id,
|
|
570
|
+
side: e.side,
|
|
571
|
+
source: r,
|
|
572
|
+
version: 2
|
|
573
|
+
},
|
|
574
|
+
workflowValues: y,
|
|
575
|
+
..._ && {
|
|
576
|
+
priceUnit: "EUR",
|
|
577
|
+
qtyUnit: "HOURS",
|
|
578
|
+
quantity: v
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
}, D = {
|
|
582
|
+
amount: "",
|
|
583
|
+
checks: {},
|
|
584
|
+
dates: {
|
|
585
|
+
fromDate: "",
|
|
586
|
+
toDate: ""
|
|
587
|
+
},
|
|
588
|
+
description: "",
|
|
589
|
+
fields: {},
|
|
590
|
+
intervention: !1,
|
|
591
|
+
reason: "",
|
|
592
|
+
reBillRatio: "",
|
|
593
|
+
title: ""
|
|
594
|
+
}, O = ({ funnel: n, countBillableDays: r, dailyPrice: i, lastReBillRatio: a = "", isEditing: o = !1 }) => {
|
|
595
|
+
let [s, c] = t(), [l, u] = t(), [d, f] = t("kind"), [h, y] = t(D), [b, x] = t(!1), S = e(() => m(n), [n]), C = S.find(({ id: e }) => e === s), w = C?.events.find(({ id: e }) => e === l), { showsPrice: T, asksReBillRatio: O } = n.pricing, k = p(w, h, w?.dates === "range" ? r(h.dates) : 1), A = T && !!w?.price, j = A && !k.hasNothingToBill, M = g(C, w, h, j), N = M[M.indexOf(d) - 1], P = (e) => y((t) => ({
|
|
596
|
+
...t,
|
|
597
|
+
...e
|
|
598
|
+
})), F = (e) => e.price === "credit" && i ? String(Math.abs(i)) : "", I = (e, t) => {
|
|
599
|
+
let n = g(C, w, t, j);
|
|
600
|
+
return n[n.indexOf(e) + 1] ?? "details";
|
|
601
|
+
}, L = () => {
|
|
602
|
+
c(void 0), u(void 0), f("kind"), y(D), x(!1);
|
|
603
|
+
}, R = (e, t, n = {}) => {
|
|
604
|
+
let r = {
|
|
605
|
+
...D,
|
|
606
|
+
amount: F(t),
|
|
607
|
+
reason: t.reasons?.length ? "" : t.reason ?? "",
|
|
608
|
+
reBillRatio: O ? a : "",
|
|
609
|
+
...n
|
|
610
|
+
};
|
|
611
|
+
c(e.id), u(t.id), y(r), f(_(g(e, t, r, T && !!t.price), r, o));
|
|
612
|
+
}, z = ({ eventId: e, answers: t }) => {
|
|
613
|
+
let n = S.find(({ events: t }) => t.some(({ id: t }) => t === e)), r = n?.events.find(({ id: t }) => t === e);
|
|
614
|
+
return n && r ? (R(n, r, t), x(!0), !0) : !1;
|
|
615
|
+
}, B = (e) => {
|
|
616
|
+
if (e.events.length === 1) {
|
|
617
|
+
R(e, e.events[0]);
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
c(e.id), u(void 0), f("event");
|
|
621
|
+
}, V = (e) => {
|
|
622
|
+
C && R(C, e);
|
|
623
|
+
}, H = () => f(I(d, h)), U = (e) => {
|
|
624
|
+
let t = w?.endDates && e !== h.reason ? {
|
|
625
|
+
dates: D.dates,
|
|
626
|
+
reason: e
|
|
627
|
+
} : { reason: e }, n = {
|
|
628
|
+
...h,
|
|
629
|
+
...t
|
|
630
|
+
};
|
|
631
|
+
P(t), f(I("reason", n));
|
|
632
|
+
}, W = (e) => {
|
|
633
|
+
let t = {
|
|
634
|
+
amount: e && w ? h.amount || F(w) : "",
|
|
635
|
+
amountGate: e
|
|
636
|
+
};
|
|
637
|
+
P(t), f(I("amountGate", {
|
|
638
|
+
...h,
|
|
639
|
+
...t
|
|
640
|
+
}));
|
|
641
|
+
}, G = () => {
|
|
642
|
+
if (!N || N === "kind") {
|
|
643
|
+
L();
|
|
644
|
+
return;
|
|
645
|
+
}
|
|
646
|
+
f(N);
|
|
647
|
+
}, K = !!w && M.every((e) => v(e, w, h)), q = o && !T && !k.hasNothingToBill;
|
|
648
|
+
return {
|
|
649
|
+
amounts: k,
|
|
650
|
+
answers: h,
|
|
651
|
+
asksAmount: j,
|
|
652
|
+
buildPayload: (e, t) => w && K ? E({
|
|
653
|
+
answers: h,
|
|
654
|
+
bookingItemId: t,
|
|
655
|
+
event: w,
|
|
656
|
+
funnel: n,
|
|
657
|
+
translate: e,
|
|
658
|
+
withPrice: j || q,
|
|
659
|
+
withReBillRatio: O || q
|
|
660
|
+
}) : void 0,
|
|
661
|
+
canGoBack: d !== "kind" && !(b && (N === "kind" || N === "event")),
|
|
662
|
+
canGoNext: !!w && v(d, w, h),
|
|
663
|
+
event: w,
|
|
664
|
+
goBack: G,
|
|
665
|
+
goNext: H,
|
|
666
|
+
group: C,
|
|
667
|
+
groups: S,
|
|
668
|
+
isComplete: K,
|
|
669
|
+
isPriced: A,
|
|
670
|
+
reset: L,
|
|
671
|
+
selectAmountGate: W,
|
|
672
|
+
selectEvent: V,
|
|
673
|
+
selectGroup: B,
|
|
674
|
+
selectReason: U,
|
|
675
|
+
setAnswers: P,
|
|
676
|
+
showsReBillRatio: O && A,
|
|
677
|
+
startPrefill: z,
|
|
678
|
+
step: d,
|
|
679
|
+
steps: M
|
|
680
|
+
};
|
|
681
|
+
}, k = {
|
|
682
|
+
ar: {
|
|
683
|
+
checks: {
|
|
684
|
+
ce_conformity: "تم التحقق من شهادة أو إقرار CE",
|
|
685
|
+
ce_declaration: "إقرار المطابقة CE متوفر",
|
|
686
|
+
ce_plate: "لوحة CE على الآلة",
|
|
687
|
+
documents_on_delivery: "تم تسليم الوثائق مع الآلة",
|
|
688
|
+
expected_operator: "المشغل هو المتوقع",
|
|
689
|
+
last_inspection_report: "آخر تقرير فحص محدّث",
|
|
690
|
+
machine_compliant: "الآلة مطابقة",
|
|
691
|
+
machine_good_condition: "سُلّمت الآلة في حالة جيدة",
|
|
692
|
+
machine_matches_order: "الآلة مطابقة للطلب",
|
|
693
|
+
maintenance_log: "تم التحقق من سجل الصيانة",
|
|
694
|
+
operator_papers: "وثائق المشغل متوفرة",
|
|
695
|
+
operator_present: "المشغل حاضر",
|
|
696
|
+
operator_skills: "تم التحقق من كفاءات المشغل (الرخصة، الفحص الطبي…)",
|
|
697
|
+
user_manual: "دليل الشركة المصنعة متوفر",
|
|
698
|
+
vgp_control: "تم التحقق من الفحوصات الدورية"
|
|
699
|
+
},
|
|
700
|
+
dayHints: {
|
|
701
|
+
breakage: "يوم الكسر",
|
|
702
|
+
control: "يوم الفحص",
|
|
703
|
+
deliveryProblem: "يوم مشكلة التسليم",
|
|
704
|
+
event: "يوم الحدث",
|
|
705
|
+
lastDay: "آخر يوم استخدام",
|
|
706
|
+
newEnd: "النهاية الجديدة",
|
|
707
|
+
operatorChange: "أول يوم للمشغل الجديد",
|
|
708
|
+
problem: "يوم المشكلة",
|
|
709
|
+
request: "يوم الطلب",
|
|
710
|
+
robbery: "يوم اكتشاف السرقة"
|
|
711
|
+
},
|
|
712
|
+
events: {
|
|
713
|
+
breakage: "كسر",
|
|
714
|
+
breakdown: "عطل",
|
|
715
|
+
delivery_problem: "التسليم أو الاستلام",
|
|
716
|
+
document_conformity: "وثائق غير مطابقة",
|
|
717
|
+
end_booking: "الإنهاء أو التمديد",
|
|
718
|
+
hours_record: "سجل الساعات",
|
|
719
|
+
immobilisation: "توقف الآلة",
|
|
720
|
+
inventory: "محضر الحالة",
|
|
721
|
+
machine_assignment: "تخصيص آلة",
|
|
722
|
+
machine_problem: "مشكلة في الآلة",
|
|
723
|
+
material_usage: "آلة غير مناسبة",
|
|
724
|
+
n1_control: "فحص N1 للوثائق",
|
|
725
|
+
n2_control: "فحص N2 عند التسليم",
|
|
726
|
+
n3_control: "فحص N3",
|
|
727
|
+
operator_change: "تغيير المشغل",
|
|
728
|
+
other: "أخرى",
|
|
729
|
+
other_material: "مشكلة أخرى في الآلة",
|
|
730
|
+
other_request: "طلب إداري",
|
|
731
|
+
robbery: "سرقة",
|
|
732
|
+
stoppage: "توقف الآلة أو سوء الأحوال الجوية",
|
|
733
|
+
weather: "سوء الأحوال الجوية"
|
|
734
|
+
},
|
|
735
|
+
fields: {
|
|
736
|
+
assigned_machine: "الآلة المخصصة",
|
|
737
|
+
code: "رمز",
|
|
738
|
+
hours_record_number: "رقم ورقة الساعات",
|
|
739
|
+
inspector_opinion: "رأي المراقب",
|
|
740
|
+
model: "نموذج",
|
|
741
|
+
new_operator_name: "اسم المشغل الجديد",
|
|
742
|
+
quantity: "عدد الساعات المنجزة",
|
|
743
|
+
serial_number: "الرقم التسلسلي",
|
|
744
|
+
site_escort: "مرافق الموقع",
|
|
745
|
+
supplier_reference: "المرجع الداخلي للمؤجر"
|
|
746
|
+
},
|
|
747
|
+
groupQuestions: {
|
|
748
|
+
controls: "أي فحص؟",
|
|
749
|
+
machine_problem: "ما المشكلة في الآلة؟",
|
|
750
|
+
operator_machine: "ماذا تريد أن تسجل؟",
|
|
751
|
+
stoppage: "لماذا الآلة متوقفة؟"
|
|
752
|
+
},
|
|
753
|
+
groups: {
|
|
754
|
+
admin_request: "طلب إداري",
|
|
755
|
+
controls: "فحص",
|
|
756
|
+
delivery: "التسليم أو الاستلام",
|
|
757
|
+
documents: "وثائق غير مطابقة",
|
|
758
|
+
end_booking: "الإنهاء أو التمديد",
|
|
759
|
+
inventory: "محضر الحالة",
|
|
760
|
+
machine_problem: "مشكلة في الآلة",
|
|
761
|
+
operator_machine: "المشغل والآلة",
|
|
762
|
+
other: "أخرى",
|
|
763
|
+
stoppage: "سوء الأحوال الجوية أو توقف الآلة"
|
|
764
|
+
},
|
|
765
|
+
questions: {
|
|
766
|
+
amount: "ما المبلغ؟",
|
|
767
|
+
billedAmount: "ما المبلغ المطلوب فوترته؟",
|
|
768
|
+
breakageKind: "ما نوع الكسر؟",
|
|
769
|
+
breakdownDays: "ما هي أيام العطل؟",
|
|
770
|
+
breakdownKind: "ما نوع العطل؟",
|
|
771
|
+
checks: "ما الذي تحققت منه؟",
|
|
772
|
+
comment: "كلمة للعميل؟",
|
|
773
|
+
credit: "كم يُخصم من الإيجار؟",
|
|
774
|
+
dailyCredit: "كم يُخصم يوميًا؟",
|
|
775
|
+
day: "أي يوم؟",
|
|
776
|
+
deliveryProblemKind: "ماذا حدث؟",
|
|
777
|
+
details: "هل لديك ما تضيفه؟",
|
|
778
|
+
documentKind: "أي وثيقة فيها مشكلة؟",
|
|
779
|
+
endKind: "ماذا تريد أن تفعل؟",
|
|
780
|
+
fields: "أكمل المعلومات",
|
|
781
|
+
inventoryKind: "أي محضر حالة؟",
|
|
782
|
+
isBilled: "هل هناك مبلغ للفوترة؟",
|
|
783
|
+
lastDay: "ما هو آخر يوم استخدام؟",
|
|
784
|
+
machineProblemKind: "ما مشكلة الآلة؟",
|
|
785
|
+
materialUsageKind: "ما هي المشكلة؟",
|
|
786
|
+
newEnd: "حتى متى التمديد؟",
|
|
787
|
+
period: "أي أيام؟",
|
|
788
|
+
photos: "ما الصور التي تريد إرفاقها؟",
|
|
789
|
+
priceKnown: "هل لديك مبلغ المؤجر بالفعل؟",
|
|
790
|
+
robberyDay: "متى لاحظت السرقة؟",
|
|
791
|
+
robberyKind: "ما الذي سُرق؟",
|
|
792
|
+
stoppageKind: "لماذا توقفت الآلة؟",
|
|
793
|
+
title: "ما عنوان الحدث؟",
|
|
794
|
+
weatherDays: "في أي أيام كان سوء الأحوال الجوية؟",
|
|
795
|
+
whatHappened: "ماذا حدث؟"
|
|
796
|
+
},
|
|
797
|
+
reasons: {
|
|
798
|
+
booking_end: "إنهاء الإيجار",
|
|
799
|
+
booking_extension: "تمديد الإيجار",
|
|
800
|
+
break_repair: "كسور كبيرة",
|
|
801
|
+
breakdown: "عطل",
|
|
802
|
+
breakdown_electric: "عطل كهربائي",
|
|
803
|
+
breakdown_engine: "عطل في المحرك",
|
|
804
|
+
breakdown_mecanic: "عطل ميكانيكي",
|
|
805
|
+
breakdown_other: "عطل آخر",
|
|
806
|
+
damages_third_parties: "مطالبة قانونية بالتعويض عن الأضرار",
|
|
807
|
+
delay_in_delivery: "تأخير في التسليم",
|
|
808
|
+
forgetting_recover: "نسيت الاستعادة",
|
|
809
|
+
immobilisation: "تجميد",
|
|
810
|
+
incompetent_operator: "مشغل غير كفؤ",
|
|
811
|
+
inventory_departure: "خروج المعدات",
|
|
812
|
+
inventory_reception: "عودة المعدات",
|
|
813
|
+
keys: "المفتاح/الرمز: ضياع/لم يتم إبلاغه",
|
|
814
|
+
machine: "وثيقة آلة غير مطابقة",
|
|
815
|
+
missing_accessory: "ملحق مفقود",
|
|
816
|
+
no_show: "لم يتم استلام التسليم",
|
|
817
|
+
operator: "وثيقة مشغل غير مطابقة",
|
|
818
|
+
other: "حدث آخر",
|
|
819
|
+
other_delivery: "تسليم آخر",
|
|
820
|
+
quality_issue: "معدات في حالة سيئة",
|
|
821
|
+
robbery_article: "سرقة آلة",
|
|
822
|
+
robbery_machine: "سرقة الآلة",
|
|
823
|
+
robbery_option: "سرقة ملحق",
|
|
824
|
+
undeclared_use: "استخدام غير معلن",
|
|
825
|
+
weather: "طقس سيء",
|
|
826
|
+
wrong_machine: "خطأ في المعدات"
|
|
827
|
+
},
|
|
828
|
+
values: {
|
|
829
|
+
amount: "المبلغ",
|
|
830
|
+
date: "تاريخ",
|
|
831
|
+
dates: "فترة",
|
|
832
|
+
description: "تعليق",
|
|
833
|
+
document_type: "نوع المستند",
|
|
834
|
+
final_toDate: "آخر يوم استخدام",
|
|
835
|
+
intervention: "يجب أن يتدخل المؤجر في الموقع",
|
|
836
|
+
inventory_type: "نوع محضر الحالة",
|
|
837
|
+
new_toDate: "تاريخ النهاية الجديد",
|
|
838
|
+
re_bill_ratio: "إعادة الفوترة",
|
|
839
|
+
reason: "السبب",
|
|
840
|
+
title: "عنوان الحدث"
|
|
841
|
+
}
|
|
842
|
+
},
|
|
843
|
+
de: {
|
|
844
|
+
checks: {
|
|
845
|
+
ce_conformity: "CE-Zertifikat oder -Erklärung geprüft",
|
|
846
|
+
ce_declaration: "CE-Konformitätserklärung vorhanden",
|
|
847
|
+
ce_plate: "CE-Schild an der Maschine",
|
|
848
|
+
documents_on_delivery: "Unterlagen bei Lieferung übergeben",
|
|
849
|
+
expected_operator: "Der Bediener ist der vorgesehene",
|
|
850
|
+
last_inspection_report: "Letzter Prüfbericht aktuell",
|
|
851
|
+
machine_compliant: "Maschine konform",
|
|
852
|
+
machine_good_condition: "Maschine in gutem Zustand geliefert",
|
|
853
|
+
machine_matches_order: "Maschine entspricht der Bestellung",
|
|
854
|
+
maintenance_log: "Wartungsheft geprüft",
|
|
855
|
+
operator_papers: "Unterlagen des Bedieners vorhanden",
|
|
856
|
+
operator_present: "Bediener vor Ort",
|
|
857
|
+
operator_skills: "Qualifikation des Bedieners geprüft (Befähigung, ärztliche Untersuchung…)",
|
|
858
|
+
user_manual: "Betriebsanleitung des Herstellers vorhanden",
|
|
859
|
+
vgp_control: "Wiederkehrende Prüfungen geprüft"
|
|
860
|
+
},
|
|
861
|
+
dayHints: {
|
|
862
|
+
breakage: "Tag des Schadens",
|
|
863
|
+
control: "Tag der Kontrolle",
|
|
864
|
+
deliveryProblem: "Tag des Lieferproblems",
|
|
865
|
+
event: "Tag des Ereignisses",
|
|
866
|
+
lastDay: "Letzter Nutzungstag",
|
|
867
|
+
newEnd: "Neues Ende",
|
|
868
|
+
operatorChange: "Erster Tag des neuen Bedieners",
|
|
869
|
+
problem: "Tag des Problems",
|
|
870
|
+
request: "Tag der Anfrage",
|
|
871
|
+
robbery: "Tag, an dem der Diebstahl festgestellt wurde"
|
|
872
|
+
},
|
|
873
|
+
events: {
|
|
874
|
+
breakage: "Bruch",
|
|
875
|
+
breakdown: "Panne",
|
|
876
|
+
delivery_problem: "Lieferung oder Abholung",
|
|
877
|
+
document_conformity: "Nicht konforme Unterlagen",
|
|
878
|
+
end_booking: "Ende oder Verlängerung",
|
|
879
|
+
hours_record: "Stundenerfassung",
|
|
880
|
+
immobilisation: "Stillstand",
|
|
881
|
+
inventory: "Zustandsprotokoll",
|
|
882
|
+
machine_assignment: "Maschinenzuweisung",
|
|
883
|
+
machine_problem: "Maschinenproblem",
|
|
884
|
+
material_usage: "Ungeeignete Maschine",
|
|
885
|
+
n1_control: "N1-Prüfung der Unterlagen",
|
|
886
|
+
n2_control: "N2-Prüfung bei Lieferung",
|
|
887
|
+
n3_control: "N3-Prüfung",
|
|
888
|
+
operator_change: "Bedienerwechsel",
|
|
889
|
+
other: "Andere",
|
|
890
|
+
other_material: "Anderes Maschinenproblem",
|
|
891
|
+
other_request: "Verwaltungsanfrage",
|
|
892
|
+
robbery: "Diebstahl",
|
|
893
|
+
stoppage: "Stillstand oder Schlechtwetter",
|
|
894
|
+
weather: "Schlechtwetter"
|
|
895
|
+
},
|
|
896
|
+
fields: {
|
|
897
|
+
assigned_machine: "Zugewiesene Maschine",
|
|
898
|
+
code: "Code",
|
|
899
|
+
hours_record_number: "Nummer des Stundenzettels",
|
|
900
|
+
inspector_opinion: "Einschätzung des Prüfers",
|
|
901
|
+
model: "Modell",
|
|
902
|
+
new_operator_name: "Name des neuen Bedieners",
|
|
903
|
+
quantity: "Geleistete Stunden",
|
|
904
|
+
serial_number: "Seriennummer",
|
|
905
|
+
site_escort: "Begleitung auf der Baustelle",
|
|
906
|
+
supplier_reference: "Interne Referenz des Vermieters"
|
|
907
|
+
},
|
|
908
|
+
groupQuestions: {
|
|
909
|
+
controls: "Welche Prüfung?",
|
|
910
|
+
machine_problem: "Was ist mit der Maschine?",
|
|
911
|
+
operator_machine: "Was möchten Sie erfassen?",
|
|
912
|
+
stoppage: "Warum steht die Maschine still?"
|
|
913
|
+
},
|
|
914
|
+
groups: {
|
|
915
|
+
admin_request: "Verwaltungsanfrage",
|
|
916
|
+
controls: "Prüfung",
|
|
917
|
+
delivery: "Lieferung oder Abholung",
|
|
918
|
+
documents: "Nicht konforme Unterlagen",
|
|
919
|
+
end_booking: "Ende oder Verlängerung",
|
|
920
|
+
inventory: "Zustandsprotokoll",
|
|
921
|
+
machine_problem: "Maschinenproblem",
|
|
922
|
+
operator_machine: "Bediener und Maschine",
|
|
923
|
+
other: "Andere",
|
|
924
|
+
stoppage: "Schlechtwetter oder Stillstand"
|
|
925
|
+
},
|
|
926
|
+
questions: {
|
|
927
|
+
amount: "Welcher Betrag?",
|
|
928
|
+
billedAmount: "Welcher Betrag soll abgerechnet werden?",
|
|
929
|
+
breakageKind: "Welche Art von Bruch?",
|
|
930
|
+
breakdownDays: "An welchen Tagen war die Maschine ausgefallen?",
|
|
931
|
+
breakdownKind: "Welche Art von Panne?",
|
|
932
|
+
checks: "Was haben Sie geprüft?",
|
|
933
|
+
comment: "Ein Wort für den Kunden?",
|
|
934
|
+
credit: "Wie viel von der Miete abziehen?",
|
|
935
|
+
dailyCredit: "Wie viel pro Tag abziehen?",
|
|
936
|
+
day: "An welchem Tag?",
|
|
937
|
+
deliveryProblemKind: "Was ist passiert?",
|
|
938
|
+
details: "Noch etwas hinzuzufügen?",
|
|
939
|
+
documentKind: "Welches Dokument ist betroffen?",
|
|
940
|
+
endKind: "Was möchten Sie tun?",
|
|
941
|
+
fields: "Angaben ergänzen",
|
|
942
|
+
inventoryKind: "Welches Zustandsprotokoll?",
|
|
943
|
+
isBilled: "Ist ein Betrag abzurechnen?",
|
|
944
|
+
lastDay: "Welcher ist der letzte Nutzungstag?",
|
|
945
|
+
machineProblemKind: "Was ist mit der Maschine?",
|
|
946
|
+
materialUsageKind: "Was ist das Problem?",
|
|
947
|
+
newEnd: "Bis wann verlängern?",
|
|
948
|
+
period: "An welchen Tagen?",
|
|
949
|
+
photos: "Welche Fotos anhängen?",
|
|
950
|
+
priceKnown: "Haben Sie den Betrag des Vermieters schon?",
|
|
951
|
+
robberyDay: "Wann haben Sie den Diebstahl bemerkt?",
|
|
952
|
+
robberyKind: "Was wurde gestohlen?",
|
|
953
|
+
stoppageKind: "Warum steht die Maschine still?",
|
|
954
|
+
title: "Welchen Titel soll das Ereignis haben?",
|
|
955
|
+
weatherDays: "An welchen Tagen war das Unwetter?",
|
|
956
|
+
whatHappened: "Was ist passiert?"
|
|
957
|
+
},
|
|
958
|
+
reasons: {
|
|
959
|
+
booking_end: "Miete beenden",
|
|
960
|
+
booking_extension: "Miete verlängern",
|
|
961
|
+
break_repair: "Erhebliche Brüche",
|
|
962
|
+
breakdown: "Panne",
|
|
963
|
+
breakdown_electric: "Elektrischer Ausfall",
|
|
964
|
+
breakdown_engine: "Motorschaden",
|
|
965
|
+
breakdown_mecanic: "Mechanischer Defekt",
|
|
966
|
+
breakdown_other: "Anderer Defekt",
|
|
967
|
+
damages_third_parties: "Rechtliche Schadensersatzforderung",
|
|
968
|
+
delay_in_delivery: "Lieferverzögerung",
|
|
969
|
+
forgetting_recover: "Rückholung vergessen",
|
|
970
|
+
immobilisation: "Immobilisierung",
|
|
971
|
+
incompetent_operator: "Inkompetenter Bediener",
|
|
972
|
+
inventory_departure: "Ausgang der Maschine",
|
|
973
|
+
inventory_reception: "Rückgabe der Maschine",
|
|
974
|
+
keys: "Schlüssel/Code: Verlust/nicht mitgeteilt",
|
|
975
|
+
machine: "Nicht konformes Maschinendokument",
|
|
976
|
+
missing_accessory: "Fehlendes Zubehör",
|
|
977
|
+
no_show: "Lieferung nicht erhalten",
|
|
978
|
+
operator: "Nicht konformes Bedienerdokument",
|
|
979
|
+
other: "Anderes Ereignis",
|
|
980
|
+
other_delivery: "Andere Lieferung",
|
|
981
|
+
quality_issue: "Schlecht zustand Ausrüstung",
|
|
982
|
+
robbery_article: "Maschinendiebstahl",
|
|
983
|
+
robbery_machine: "Maschinendiebstahl",
|
|
984
|
+
robbery_option: "Zubehördiebstahl",
|
|
985
|
+
undeclared_use: "Nicht deklarierter Gebrauch",
|
|
986
|
+
weather: "Schlechtes Wetter",
|
|
987
|
+
wrong_machine: "Gerätefehler"
|
|
988
|
+
},
|
|
989
|
+
values: {
|
|
990
|
+
amount: "Betrag",
|
|
991
|
+
date: "Datum",
|
|
992
|
+
dates: "Periode",
|
|
993
|
+
description: "Kommentar",
|
|
994
|
+
document_type: "Dokumententyp",
|
|
995
|
+
final_toDate: "Letzter Nutzungstag",
|
|
996
|
+
intervention: "Der Vermieter muss vor Ort eingreifen",
|
|
997
|
+
inventory_type: "Art des Zustandsprotokolls",
|
|
998
|
+
new_toDate: "Neues Enddatum",
|
|
999
|
+
re_bill_ratio: "Weiterberechnung",
|
|
1000
|
+
reason: "Grund",
|
|
1001
|
+
title: "Titel des Ereignisses"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
en: {
|
|
1005
|
+
checks: {
|
|
1006
|
+
ce_conformity: "CE certificate or declaration checked",
|
|
1007
|
+
ce_declaration: "CE declaration of conformity on hand",
|
|
1008
|
+
ce_plate: "CE plate on the machine",
|
|
1009
|
+
documents_on_delivery: "Documents handed over on delivery",
|
|
1010
|
+
expected_operator: "The operator is the one planned",
|
|
1011
|
+
last_inspection_report: "Latest inspection report up to date",
|
|
1012
|
+
machine_compliant: "Machine compliant",
|
|
1013
|
+
machine_good_condition: "Machine delivered in good condition",
|
|
1014
|
+
machine_matches_order: "Machine matches the order",
|
|
1015
|
+
maintenance_log: "Maintenance log checked",
|
|
1016
|
+
operator_papers: "Operator's papers on hand",
|
|
1017
|
+
operator_present: "Operator on site",
|
|
1018
|
+
operator_skills: "Operator's skills checked (licence, medical check…)",
|
|
1019
|
+
user_manual: "Manufacturer's manual on hand",
|
|
1020
|
+
vgp_control: "Periodic inspections checked"
|
|
1021
|
+
},
|
|
1022
|
+
dayHints: {
|
|
1023
|
+
breakage: "Day of the breakage",
|
|
1024
|
+
control: "Day of the inspection",
|
|
1025
|
+
deliveryProblem: "Day of the delivery problem",
|
|
1026
|
+
event: "Day of the event",
|
|
1027
|
+
lastDay: "Last day of use",
|
|
1028
|
+
newEnd: "New end",
|
|
1029
|
+
operatorChange: "First day of the new operator",
|
|
1030
|
+
problem: "Day of the problem",
|
|
1031
|
+
request: "Day of the request",
|
|
1032
|
+
robbery: "Day the theft was found"
|
|
1033
|
+
},
|
|
1034
|
+
events: {
|
|
1035
|
+
breakage: "Breakage",
|
|
1036
|
+
breakdown: "Breakdown",
|
|
1037
|
+
delivery_problem: "Delivery or pickup",
|
|
1038
|
+
document_conformity: "Non-compliant documents",
|
|
1039
|
+
end_booking: "End or extension",
|
|
1040
|
+
hours_record: "Hours record",
|
|
1041
|
+
immobilisation: "Immobilisation",
|
|
1042
|
+
inventory: "Inspection report",
|
|
1043
|
+
machine_assignment: "Machine assignment",
|
|
1044
|
+
machine_problem: "Machine problem",
|
|
1045
|
+
material_usage: "Unsuitable machine",
|
|
1046
|
+
n1_control: "N1 document check",
|
|
1047
|
+
n2_control: "N2 check on delivery",
|
|
1048
|
+
n3_control: "N3 check",
|
|
1049
|
+
operator_change: "Operator change",
|
|
1050
|
+
other: "Other",
|
|
1051
|
+
other_material: "Other machine problem",
|
|
1052
|
+
other_request: "Administrative request",
|
|
1053
|
+
robbery: "Theft",
|
|
1054
|
+
stoppage: "Immobilisation or bad weather",
|
|
1055
|
+
weather: "Bad weather"
|
|
1056
|
+
},
|
|
1057
|
+
fields: {
|
|
1058
|
+
assigned_machine: "Assigned machine",
|
|
1059
|
+
code: "Code",
|
|
1060
|
+
hours_record_number: "Time sheet number",
|
|
1061
|
+
inspector_opinion: "Inspector's opinion",
|
|
1062
|
+
model: "Model",
|
|
1063
|
+
new_operator_name: "New operator's name",
|
|
1064
|
+
quantity: "Hours worked",
|
|
1065
|
+
serial_number: "Serial number",
|
|
1066
|
+
site_escort: "Site escort",
|
|
1067
|
+
supplier_reference: "Supplier's internal reference"
|
|
1068
|
+
},
|
|
1069
|
+
groupQuestions: {
|
|
1070
|
+
controls: "Which check?",
|
|
1071
|
+
machine_problem: "What is wrong with the machine?",
|
|
1072
|
+
operator_machine: "What do you want to record?",
|
|
1073
|
+
stoppage: "Why is the machine stopped?"
|
|
1074
|
+
},
|
|
1075
|
+
groups: {
|
|
1076
|
+
admin_request: "Administrative request",
|
|
1077
|
+
controls: "Check",
|
|
1078
|
+
delivery: "Delivery or pickup",
|
|
1079
|
+
documents: "Non-compliant documents",
|
|
1080
|
+
end_booking: "End or extension",
|
|
1081
|
+
inventory: "Inspection report",
|
|
1082
|
+
machine_problem: "Machine problem",
|
|
1083
|
+
operator_machine: "Operator and machine",
|
|
1084
|
+
other: "Other",
|
|
1085
|
+
stoppage: "Bad weather or immobilisation"
|
|
1086
|
+
},
|
|
1087
|
+
questions: {
|
|
1088
|
+
amount: "What amount?",
|
|
1089
|
+
billedAmount: "What amount to bill?",
|
|
1090
|
+
breakageKind: "What kind of breakage?",
|
|
1091
|
+
breakdownDays: "Which days was the machine down?",
|
|
1092
|
+
breakdownKind: "What kind of breakdown?",
|
|
1093
|
+
checks: "What did you check?",
|
|
1094
|
+
comment: "A word for the client?",
|
|
1095
|
+
credit: "How much to take off the rental?",
|
|
1096
|
+
dailyCredit: "How much to deduct per day?",
|
|
1097
|
+
day: "Which day?",
|
|
1098
|
+
deliveryProblemKind: "What happened?",
|
|
1099
|
+
details: "Anything to add?",
|
|
1100
|
+
documentKind: "Which document is the problem?",
|
|
1101
|
+
endKind: "What would you like to do?",
|
|
1102
|
+
fields: "Fill in the details",
|
|
1103
|
+
inventoryKind: "Which inspection report?",
|
|
1104
|
+
isBilled: "Is there an amount to bill?",
|
|
1105
|
+
lastDay: "What is the last day of use?",
|
|
1106
|
+
machineProblemKind: "What is wrong with the machine?",
|
|
1107
|
+
materialUsageKind: "What is the problem?",
|
|
1108
|
+
newEnd: "Extend until when?",
|
|
1109
|
+
period: "Which days?",
|
|
1110
|
+
photos: "Which photos to attach?",
|
|
1111
|
+
priceKnown: "Do you already have the supplier's amount?",
|
|
1112
|
+
robberyDay: "When did you notice the theft?",
|
|
1113
|
+
robberyKind: "What was stolen?",
|
|
1114
|
+
stoppageKind: "Why is the machine stopped?",
|
|
1115
|
+
title: "What title for the event?",
|
|
1116
|
+
weatherDays: "On which days was the bad weather?",
|
|
1117
|
+
whatHappened: "What happened?"
|
|
1118
|
+
},
|
|
1119
|
+
reasons: {
|
|
1120
|
+
booking_end: "End the rental",
|
|
1121
|
+
booking_extension: "Extend the rental",
|
|
1122
|
+
break_repair: "Significant breakages",
|
|
1123
|
+
breakdown: "Breakdown",
|
|
1124
|
+
breakdown_electric: "Electrical breakdown",
|
|
1125
|
+
breakdown_engine: "Engine breakdown",
|
|
1126
|
+
breakdown_mecanic: "Mechanical breakdown",
|
|
1127
|
+
breakdown_other: "Other breakdown",
|
|
1128
|
+
damages_third_parties: "Legal damage claim",
|
|
1129
|
+
delay_in_delivery: "Delivery delay",
|
|
1130
|
+
forgetting_recover: "Forgot to recover",
|
|
1131
|
+
immobilisation: "Immobilization",
|
|
1132
|
+
incompetent_operator: "Incompetent operator",
|
|
1133
|
+
inventory_departure: "Machine leaving",
|
|
1134
|
+
inventory_reception: "Machine returned",
|
|
1135
|
+
keys: "Key/Code: loss/not communicated",
|
|
1136
|
+
machine: "Non-compliant machine document",
|
|
1137
|
+
missing_accessory: "Missing accessory",
|
|
1138
|
+
no_show: "Delivery not received",
|
|
1139
|
+
operator: "Non-compliant operator document",
|
|
1140
|
+
other: "Other event",
|
|
1141
|
+
other_delivery: "Other delivery",
|
|
1142
|
+
quality_issue: "Bad condition equipment",
|
|
1143
|
+
robbery_article: "Machine theft",
|
|
1144
|
+
robbery_machine: "Machine theft",
|
|
1145
|
+
robbery_option: "Accessory theft",
|
|
1146
|
+
undeclared_use: "Undeclared use",
|
|
1147
|
+
weather: "Bad weather",
|
|
1148
|
+
wrong_machine: "Equipment error"
|
|
1149
|
+
},
|
|
1150
|
+
values: {
|
|
1151
|
+
amount: "Amount",
|
|
1152
|
+
date: "Date",
|
|
1153
|
+
dates: "Period",
|
|
1154
|
+
description: "Comment",
|
|
1155
|
+
document_type: "Document type",
|
|
1156
|
+
final_toDate: "Last day of use",
|
|
1157
|
+
intervention: "The supplier must come on site",
|
|
1158
|
+
inventory_type: "Inspection report type",
|
|
1159
|
+
new_toDate: "New end date",
|
|
1160
|
+
re_bill_ratio: "Re-billing",
|
|
1161
|
+
reason: "Reason",
|
|
1162
|
+
title: "Event title"
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
es: {
|
|
1166
|
+
checks: {
|
|
1167
|
+
ce_conformity: "Certificado o declaración CE comprobado",
|
|
1168
|
+
ce_declaration: "Declaración de conformidad CE disponible",
|
|
1169
|
+
ce_plate: "Placa CE en la máquina",
|
|
1170
|
+
documents_on_delivery: "Documentos entregados con la máquina",
|
|
1171
|
+
expected_operator: "El operador es el previsto",
|
|
1172
|
+
last_inspection_report: "Último informe de inspección al día",
|
|
1173
|
+
machine_compliant: "Máquina conforme",
|
|
1174
|
+
machine_good_condition: "Máquina entregada en buen estado",
|
|
1175
|
+
machine_matches_order: "Máquina conforme al pedido",
|
|
1176
|
+
maintenance_log: "Libro de mantenimiento comprobado",
|
|
1177
|
+
operator_papers: "Documentos del operador disponibles",
|
|
1178
|
+
operator_present: "Operador presente",
|
|
1179
|
+
operator_skills: "Competencias del operador comprobadas (carné, reconocimiento médico…)",
|
|
1180
|
+
user_manual: "Manual del fabricante disponible",
|
|
1181
|
+
vgp_control: "Inspecciones periódicas comprobadas"
|
|
1182
|
+
},
|
|
1183
|
+
dayHints: {
|
|
1184
|
+
breakage: "Día de la rotura",
|
|
1185
|
+
control: "Día del control",
|
|
1186
|
+
deliveryProblem: "Día del problema de entrega",
|
|
1187
|
+
event: "Día del evento",
|
|
1188
|
+
lastDay: "Último día de uso",
|
|
1189
|
+
newEnd: "Nuevo fin",
|
|
1190
|
+
operatorChange: "Primer día del nuevo operador",
|
|
1191
|
+
problem: "Día del problema",
|
|
1192
|
+
request: "Día de la solicitud",
|
|
1193
|
+
robbery: "Día en que se constató el robo"
|
|
1194
|
+
},
|
|
1195
|
+
events: {
|
|
1196
|
+
breakage: "Rotura",
|
|
1197
|
+
breakdown: "Avería",
|
|
1198
|
+
delivery_problem: "Entrega o recogida",
|
|
1199
|
+
document_conformity: "Documentos no conformes",
|
|
1200
|
+
end_booking: "Fin o prolongación",
|
|
1201
|
+
hours_record: "Registro de horas",
|
|
1202
|
+
immobilisation: "Inmovilización",
|
|
1203
|
+
inventory: "Acta de estado",
|
|
1204
|
+
machine_assignment: "Asignación de máquina",
|
|
1205
|
+
machine_problem: "Problema de máquina",
|
|
1206
|
+
material_usage: "Máquina inadecuada",
|
|
1207
|
+
n1_control: "Control N1 de documentos",
|
|
1208
|
+
n2_control: "Control N2 en la entrega",
|
|
1209
|
+
n3_control: "Control N3",
|
|
1210
|
+
operator_change: "Cambio de operador",
|
|
1211
|
+
other: "Otro",
|
|
1212
|
+
other_material: "Otro problema de máquina",
|
|
1213
|
+
other_request: "Solicitud administrativa",
|
|
1214
|
+
robbery: "Robo",
|
|
1215
|
+
stoppage: "Inmovilización o mal tiempo",
|
|
1216
|
+
weather: "Mal tiempo"
|
|
1217
|
+
},
|
|
1218
|
+
fields: {
|
|
1219
|
+
assigned_machine: "Máquina asignada",
|
|
1220
|
+
code: "Código",
|
|
1221
|
+
hours_record_number: "Número del parte de horas",
|
|
1222
|
+
inspector_opinion: "Opinión del inspector",
|
|
1223
|
+
model: "Modelo",
|
|
1224
|
+
new_operator_name: "Nombre del nuevo operador",
|
|
1225
|
+
quantity: "Horas trabajadas",
|
|
1226
|
+
serial_number: "Número de serie",
|
|
1227
|
+
site_escort: "Acompañante en obra",
|
|
1228
|
+
supplier_reference: "Referencia interna del proveedor"
|
|
1229
|
+
},
|
|
1230
|
+
groupQuestions: {
|
|
1231
|
+
controls: "¿Qué control?",
|
|
1232
|
+
machine_problem: "¿Qué le pasa a la máquina?",
|
|
1233
|
+
operator_machine: "¿Qué quiere registrar?",
|
|
1234
|
+
stoppage: "¿Por qué está parada la máquina?"
|
|
1235
|
+
},
|
|
1236
|
+
groups: {
|
|
1237
|
+
admin_request: "Solicitud administrativa",
|
|
1238
|
+
controls: "Control",
|
|
1239
|
+
delivery: "Entrega o recogida",
|
|
1240
|
+
documents: "Documentos no conformes",
|
|
1241
|
+
end_booking: "Fin o prolongación",
|
|
1242
|
+
inventory: "Acta de estado",
|
|
1243
|
+
machine_problem: "Problema de máquina",
|
|
1244
|
+
operator_machine: "Operador y máquina",
|
|
1245
|
+
other: "Otro",
|
|
1246
|
+
stoppage: "Mal tiempo o inmovilización"
|
|
1247
|
+
},
|
|
1248
|
+
questions: {
|
|
1249
|
+
amount: "¿Qué importe?",
|
|
1250
|
+
billedAmount: "¿Qué importe facturar?",
|
|
1251
|
+
breakageKind: "¿Qué tipo de rotura?",
|
|
1252
|
+
breakdownDays: "¿Qué días estuvo averiada la máquina?",
|
|
1253
|
+
breakdownKind: "¿Qué tipo de avería?",
|
|
1254
|
+
checks: "¿Qué ha comprobado?",
|
|
1255
|
+
comment: "¿Unas palabras para el cliente?",
|
|
1256
|
+
credit: "¿Cuánto descontar del alquiler?",
|
|
1257
|
+
dailyCredit: "¿Cuánto descontar por día?",
|
|
1258
|
+
day: "¿Qué día?",
|
|
1259
|
+
deliveryProblemKind: "¿Qué ha pasado?",
|
|
1260
|
+
details: "¿Algo que añadir?",
|
|
1261
|
+
documentKind: "¿Qué documento falla?",
|
|
1262
|
+
endKind: "¿Qué desea hacer?",
|
|
1263
|
+
fields: "Complete la información",
|
|
1264
|
+
inventoryKind: "¿Qué acta de estado?",
|
|
1265
|
+
isBilled: "¿Hay un importe que facturar?",
|
|
1266
|
+
lastDay: "¿Cuál es el último día de uso?",
|
|
1267
|
+
machineProblemKind: "¿Qué le pasa a la máquina?",
|
|
1268
|
+
materialUsageKind: "¿Cuál es el problema?",
|
|
1269
|
+
newEnd: "¿Hasta cuándo prolongar?",
|
|
1270
|
+
period: "¿Qué días?",
|
|
1271
|
+
photos: "¿Qué fotos adjuntar?",
|
|
1272
|
+
priceKnown: "¿Ya tiene el importe del proveedor?",
|
|
1273
|
+
robberyDay: "¿Cuándo detectó el robo?",
|
|
1274
|
+
robberyKind: "¿Qué han robado?",
|
|
1275
|
+
stoppageKind: "¿Por qué está parada la máquina?",
|
|
1276
|
+
title: "¿Qué título dar al evento?",
|
|
1277
|
+
weatherDays: "¿Qué días hubo mal tiempo?",
|
|
1278
|
+
whatHappened: "¿Qué ha pasado?"
|
|
1279
|
+
},
|
|
1280
|
+
reasons: {
|
|
1281
|
+
booking_end: "Terminar el alquiler",
|
|
1282
|
+
booking_extension: "Prolongar el alquiler",
|
|
1283
|
+
break_repair: "Roturas significativas",
|
|
1284
|
+
breakdown: "Avería",
|
|
1285
|
+
breakdown_electric: "Avería eléctrica",
|
|
1286
|
+
breakdown_engine: "Avería del motor",
|
|
1287
|
+
breakdown_mecanic: "Avería mecánica",
|
|
1288
|
+
breakdown_other: "Otra avería",
|
|
1289
|
+
damages_third_parties: "Reclamación legal por daños a terceros",
|
|
1290
|
+
delay_in_delivery: "Retraso en la entrega",
|
|
1291
|
+
forgetting_recover: "Olvidó recuperar",
|
|
1292
|
+
immobilisation: "Inmovilización",
|
|
1293
|
+
incompetent_operator: "Operador incompetente",
|
|
1294
|
+
inventory_departure: "Salida del material",
|
|
1295
|
+
inventory_reception: "Devolución del material",
|
|
1296
|
+
keys: "Llave/Código: pérdida/no comunicado",
|
|
1297
|
+
machine: "Documento de máquina no conforme",
|
|
1298
|
+
missing_accessory: "Accesorio faltante",
|
|
1299
|
+
no_show: "Entrega no recibida",
|
|
1300
|
+
operator: "Documento de operador no conforme",
|
|
1301
|
+
other: "Otro evento",
|
|
1302
|
+
other_delivery: "Otra entrega",
|
|
1303
|
+
quality_issue: "Equipo en mal estado",
|
|
1304
|
+
robbery_article: "Robo de máquina",
|
|
1305
|
+
robbery_machine: "Robo de máquina",
|
|
1306
|
+
robbery_option: "Robo de accesorio",
|
|
1307
|
+
undeclared_use: "Uso no declarado",
|
|
1308
|
+
weather: "Mal tiempo",
|
|
1309
|
+
wrong_machine: "Error de equipo"
|
|
1310
|
+
},
|
|
1311
|
+
values: {
|
|
1312
|
+
amount: "Cantidad",
|
|
1313
|
+
date: "Fecha",
|
|
1314
|
+
dates: "Período",
|
|
1315
|
+
description: "Comentario",
|
|
1316
|
+
document_type: "Tipo de documento",
|
|
1317
|
+
final_toDate: "Último día de uso",
|
|
1318
|
+
intervention: "El proveedor debe intervenir en obra",
|
|
1319
|
+
inventory_type: "Tipo de acta de estado",
|
|
1320
|
+
new_toDate: "Nueva fecha de fin",
|
|
1321
|
+
re_bill_ratio: "Refacturación",
|
|
1322
|
+
reason: "Motivo",
|
|
1323
|
+
title: "Título del evento"
|
|
1324
|
+
}
|
|
1325
|
+
},
|
|
1326
|
+
fr: {
|
|
1327
|
+
checks: {
|
|
1328
|
+
ce_conformity: "Certificat ou déclaration CE vérifié",
|
|
1329
|
+
ce_declaration: "Déclaration de conformité CE présente",
|
|
1330
|
+
ce_plate: "Plaque CE présente",
|
|
1331
|
+
documents_on_delivery: "Documents présents à la livraison",
|
|
1332
|
+
expected_operator: "L'opérateur est celui prévu",
|
|
1333
|
+
last_inspection_report: "Dernier rapport de vérification à jour",
|
|
1334
|
+
machine_compliant: "Matériel conforme",
|
|
1335
|
+
machine_good_condition: "Matériel livré en bon état",
|
|
1336
|
+
machine_matches_order: "Matériel conforme à la commande",
|
|
1337
|
+
maintenance_log: "Carnet de maintenance vérifié",
|
|
1338
|
+
operator_papers: "Papiers de l'opérateur présents",
|
|
1339
|
+
operator_present: "Opérateur présent",
|
|
1340
|
+
operator_skills: "Compétences de l'opérateur vérifiées (CACES, visite médicale…)",
|
|
1341
|
+
user_manual: "Notice d'instructions du constructeur présente",
|
|
1342
|
+
vgp_control: "VGP vérifiées"
|
|
1343
|
+
},
|
|
1344
|
+
dayHints: {
|
|
1345
|
+
breakage: "Jour de la casse",
|
|
1346
|
+
control: "Jour du contrôle",
|
|
1347
|
+
deliveryProblem: "Jour du problème de livraison",
|
|
1348
|
+
event: "Jour de l'événement",
|
|
1349
|
+
lastDay: "Dernier jour d'utilisation",
|
|
1350
|
+
newEnd: "Nouvelle fin",
|
|
1351
|
+
operatorChange: "Premier jour du nouvel opérateur",
|
|
1352
|
+
problem: "Jour du problème",
|
|
1353
|
+
request: "Jour de la demande",
|
|
1354
|
+
robbery: "Jour où le vol a été constaté"
|
|
1355
|
+
},
|
|
1356
|
+
events: {
|
|
1357
|
+
breakage: "Casse",
|
|
1358
|
+
breakdown: "Panne",
|
|
1359
|
+
delivery_problem: "Livraison ou reprise",
|
|
1360
|
+
document_conformity: "Documents non conformes",
|
|
1361
|
+
end_booking: "Fin ou prolongation",
|
|
1362
|
+
hours_record: "Relevé d'heures",
|
|
1363
|
+
immobilisation: "Immobilisation",
|
|
1364
|
+
inventory: "État des lieux",
|
|
1365
|
+
machine_assignment: "Affectation machine",
|
|
1366
|
+
machine_problem: "Problème machine",
|
|
1367
|
+
material_usage: "Matériel inadapté",
|
|
1368
|
+
n1_control: "Contrôle N1 des documents",
|
|
1369
|
+
n2_control: "Contrôle N2 à la livraison",
|
|
1370
|
+
n3_control: "Contrôle N3",
|
|
1371
|
+
operator_change: "Changement d'opérateur",
|
|
1372
|
+
other: "Autre",
|
|
1373
|
+
other_material: "Autre problème matériel",
|
|
1374
|
+
other_request: "Demande administrative",
|
|
1375
|
+
robbery: "Vol",
|
|
1376
|
+
stoppage: "Immobilisation ou intempéries",
|
|
1377
|
+
weather: "Intempéries"
|
|
1378
|
+
},
|
|
1379
|
+
fields: {
|
|
1380
|
+
assigned_machine: "Machine affectée",
|
|
1381
|
+
code: "Code",
|
|
1382
|
+
hours_record_number: "Numéro du bon d'heures",
|
|
1383
|
+
inspector_opinion: "Avis du contrôleur",
|
|
1384
|
+
model: "Modèle",
|
|
1385
|
+
new_operator_name: "Nom du nouvel opérateur",
|
|
1386
|
+
quantity: "Nombre d'heures effectuées",
|
|
1387
|
+
serial_number: "Numéro de série",
|
|
1388
|
+
site_escort: "Accompagnateur chantier",
|
|
1389
|
+
supplier_reference: "Référence interne du loueur"
|
|
1390
|
+
},
|
|
1391
|
+
groupQuestions: {
|
|
1392
|
+
controls: "Quel contrôle ?",
|
|
1393
|
+
machine_problem: "Quel problème sur la machine ?",
|
|
1394
|
+
operator_machine: "Que voulez-vous enregistrer ?",
|
|
1395
|
+
stoppage: "Pourquoi la machine est-elle arrêtée ?"
|
|
1396
|
+
},
|
|
1397
|
+
groups: {
|
|
1398
|
+
admin_request: "Demande administrative",
|
|
1399
|
+
controls: "Contrôle",
|
|
1400
|
+
delivery: "Livraison ou reprise",
|
|
1401
|
+
documents: "Documents non conformes",
|
|
1402
|
+
end_booking: "Fin ou prolongation",
|
|
1403
|
+
inventory: "État des lieux",
|
|
1404
|
+
machine_problem: "Problème machine",
|
|
1405
|
+
operator_machine: "Opérateur et machine",
|
|
1406
|
+
other: "Autre",
|
|
1407
|
+
stoppage: "Intempéries ou immobilisation"
|
|
1408
|
+
},
|
|
1409
|
+
questions: {
|
|
1410
|
+
amount: "Quel montant ?",
|
|
1411
|
+
billedAmount: "Quel montant facturer ?",
|
|
1412
|
+
breakageKind: "Quel type de casse ?",
|
|
1413
|
+
breakdownDays: "Quels sont les jours de panne ?",
|
|
1414
|
+
breakdownKind: "Quel type de panne ?",
|
|
1415
|
+
checks: "Qu'avez-vous vérifié ?",
|
|
1416
|
+
comment: "Un mot pour le client ?",
|
|
1417
|
+
credit: "Combien déduire de la location ?",
|
|
1418
|
+
dailyCredit: "Combien déduire par jour ?",
|
|
1419
|
+
day: "Quel jour ?",
|
|
1420
|
+
deliveryProblemKind: "Que s'est-il passé ?",
|
|
1421
|
+
details: "Quelque chose à ajouter ?",
|
|
1422
|
+
documentKind: "Quel document pose problème ?",
|
|
1423
|
+
endKind: "Que souhaitez-vous faire ?",
|
|
1424
|
+
fields: "Complétez les informations",
|
|
1425
|
+
inventoryKind: "Quel état des lieux ?",
|
|
1426
|
+
isBilled: "Faut-il facturer un montant ?",
|
|
1427
|
+
lastDay: "Quel est le dernier jour d'utilisation ?",
|
|
1428
|
+
machineProblemKind: "Quel problème sur la machine ?",
|
|
1429
|
+
materialUsageKind: "Quel est le problème ?",
|
|
1430
|
+
newEnd: "Jusqu'à quand prolonger ?",
|
|
1431
|
+
period: "Sur quels jours ?",
|
|
1432
|
+
photos: "Quelles photos joindre ?",
|
|
1433
|
+
priceKnown: "Avez-vous déjà le montant du loueur ?",
|
|
1434
|
+
robberyDay: "Quand avez-vous constaté le vol ?",
|
|
1435
|
+
robberyKind: "Qu'est-ce qui a été volé ?",
|
|
1436
|
+
stoppageKind: "Pourquoi la machine est-elle arrêtée ?",
|
|
1437
|
+
title: "Quel titre donner à l'événement ?",
|
|
1438
|
+
weatherDays: "Sur quels jours a eu lieu l'intempérie ?",
|
|
1439
|
+
whatHappened: "Que s'est-il passé ?"
|
|
1440
|
+
},
|
|
1441
|
+
reasons: {
|
|
1442
|
+
booking_end: "Terminer la location",
|
|
1443
|
+
booking_extension: "Prolonger la location",
|
|
1444
|
+
break_repair: "Casses importantes",
|
|
1445
|
+
breakdown: "Panne",
|
|
1446
|
+
breakdown_electric: "Panne électrique",
|
|
1447
|
+
breakdown_engine: "Panne moteur",
|
|
1448
|
+
breakdown_mecanic: "Panne mécanique",
|
|
1449
|
+
breakdown_other: "Autre panne",
|
|
1450
|
+
damages_third_parties: "Sinistre-juridique",
|
|
1451
|
+
delay_in_delivery: "Retard de livraison",
|
|
1452
|
+
forgetting_recover: "Oubli de récupération",
|
|
1453
|
+
immobilisation: "Immobilisation",
|
|
1454
|
+
incompetent_operator: "Opérateur incompétent",
|
|
1455
|
+
inventory_departure: "Départ du matériel",
|
|
1456
|
+
inventory_reception: "Retour du matériel",
|
|
1457
|
+
keys: "Clé/Code : perte/non-communiqué",
|
|
1458
|
+
machine: "Document machine non conforme",
|
|
1459
|
+
missing_accessory: "Accessoire manquant",
|
|
1460
|
+
no_show: "Livraison non effectuée",
|
|
1461
|
+
operator: "Document opérateur non conforme",
|
|
1462
|
+
other: "Autre évènement",
|
|
1463
|
+
other_delivery: "Problème livraison",
|
|
1464
|
+
quality_issue: "Mauvais état matériel",
|
|
1465
|
+
robbery_article: "Vol machine",
|
|
1466
|
+
robbery_machine: "Vol machine",
|
|
1467
|
+
robbery_option: "Vol accessoire",
|
|
1468
|
+
undeclared_use: "Utilisation non déclarée",
|
|
1469
|
+
weather: "Intempéries",
|
|
1470
|
+
wrong_machine: "Erreur Matériel"
|
|
1471
|
+
},
|
|
1472
|
+
values: {
|
|
1473
|
+
amount: "Montant",
|
|
1474
|
+
date: "Date",
|
|
1475
|
+
dates: "Période",
|
|
1476
|
+
description: "Commentaire",
|
|
1477
|
+
document_type: "Type de document",
|
|
1478
|
+
final_toDate: "Dernier jour d'utilisation",
|
|
1479
|
+
intervention: "Le loueur doit intervenir sur place",
|
|
1480
|
+
inventory_type: "Type d'état des lieux",
|
|
1481
|
+
new_toDate: "Nouvelle date de fin",
|
|
1482
|
+
re_bill_ratio: "Refacturation",
|
|
1483
|
+
reason: "Motif",
|
|
1484
|
+
title: "Titre de l'événement"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
it: {
|
|
1488
|
+
checks: {
|
|
1489
|
+
ce_conformity: "Certificato o dichiarazione CE verificato",
|
|
1490
|
+
ce_declaration: "Dichiarazione di conformità CE presente",
|
|
1491
|
+
ce_plate: "Targa CE sulla macchina",
|
|
1492
|
+
documents_on_delivery: "Documenti consegnati con la macchina",
|
|
1493
|
+
expected_operator: "L'operatore è quello previsto",
|
|
1494
|
+
last_inspection_report: "Ultimo rapporto di verifica aggiornato",
|
|
1495
|
+
machine_compliant: "Macchina conforme",
|
|
1496
|
+
machine_good_condition: "Macchina consegnata in buono stato",
|
|
1497
|
+
machine_matches_order: "Macchina conforme all'ordine",
|
|
1498
|
+
maintenance_log: "Libretto di manutenzione verificato",
|
|
1499
|
+
operator_papers: "Documenti dell'operatore presenti",
|
|
1500
|
+
operator_present: "Operatore presente",
|
|
1501
|
+
operator_skills: "Competenze dell'operatore verificate (patentino, visita medica…)",
|
|
1502
|
+
user_manual: "Manuale del costruttore presente",
|
|
1503
|
+
vgp_control: "Verifiche periodiche controllate"
|
|
1504
|
+
},
|
|
1505
|
+
dayHints: {
|
|
1506
|
+
breakage: "Giorno della rottura",
|
|
1507
|
+
control: "Giorno del controllo",
|
|
1508
|
+
deliveryProblem: "Giorno del problema di consegna",
|
|
1509
|
+
event: "Giorno dell'evento",
|
|
1510
|
+
lastDay: "Ultimo giorno di utilizzo",
|
|
1511
|
+
newEnd: "Nuova fine",
|
|
1512
|
+
operatorChange: "Primo giorno del nuovo operatore",
|
|
1513
|
+
problem: "Giorno del problema",
|
|
1514
|
+
request: "Giorno della richiesta",
|
|
1515
|
+
robbery: "Giorno in cui è stato constatato il furto"
|
|
1516
|
+
},
|
|
1517
|
+
events: {
|
|
1518
|
+
breakage: "Rottura",
|
|
1519
|
+
breakdown: "Guasto",
|
|
1520
|
+
delivery_problem: "Consegna o ritiro",
|
|
1521
|
+
document_conformity: "Documenti non conformi",
|
|
1522
|
+
end_booking: "Fine o proroga",
|
|
1523
|
+
hours_record: "Rilevazione ore",
|
|
1524
|
+
immobilisation: "Fermo macchina",
|
|
1525
|
+
inventory: "Verbale di stato",
|
|
1526
|
+
machine_assignment: "Assegnazione macchina",
|
|
1527
|
+
machine_problem: "Problema della macchina",
|
|
1528
|
+
material_usage: "Macchina inadatta",
|
|
1529
|
+
n1_control: "Controllo N1 dei documenti",
|
|
1530
|
+
n2_control: "Controllo N2 alla consegna",
|
|
1531
|
+
n3_control: "Controllo N3",
|
|
1532
|
+
operator_change: "Cambio operatore",
|
|
1533
|
+
other: "Altro",
|
|
1534
|
+
other_material: "Altro problema della macchina",
|
|
1535
|
+
other_request: "Richiesta amministrativa",
|
|
1536
|
+
robbery: "Furto",
|
|
1537
|
+
stoppage: "Fermo macchina o maltempo",
|
|
1538
|
+
weather: "Maltempo"
|
|
1539
|
+
},
|
|
1540
|
+
fields: {
|
|
1541
|
+
assigned_machine: "Macchina assegnata",
|
|
1542
|
+
code: "Codice",
|
|
1543
|
+
hours_record_number: "Numero del foglio ore",
|
|
1544
|
+
inspector_opinion: "Parere dell'ispettore",
|
|
1545
|
+
model: "Modello",
|
|
1546
|
+
new_operator_name: "Nome del nuovo operatore",
|
|
1547
|
+
quantity: "Ore lavorate",
|
|
1548
|
+
serial_number: "Numero di serie",
|
|
1549
|
+
site_escort: "Accompagnatore in cantiere",
|
|
1550
|
+
supplier_reference: "Riferimento interno del noleggiatore"
|
|
1551
|
+
},
|
|
1552
|
+
groupQuestions: {
|
|
1553
|
+
controls: "Quale controllo?",
|
|
1554
|
+
machine_problem: "Che problema ha la macchina?",
|
|
1555
|
+
operator_machine: "Che cosa vuole registrare?",
|
|
1556
|
+
stoppage: "Perché la macchina è ferma?"
|
|
1557
|
+
},
|
|
1558
|
+
groups: {
|
|
1559
|
+
admin_request: "Richiesta amministrativa",
|
|
1560
|
+
controls: "Controllo",
|
|
1561
|
+
delivery: "Consegna o ritiro",
|
|
1562
|
+
documents: "Documenti non conformi",
|
|
1563
|
+
end_booking: "Fine o proroga",
|
|
1564
|
+
inventory: "Verbale di stato",
|
|
1565
|
+
machine_problem: "Problema della macchina",
|
|
1566
|
+
operator_machine: "Operatore e macchina",
|
|
1567
|
+
other: "Altro",
|
|
1568
|
+
stoppage: "Maltempo o fermo macchina"
|
|
1569
|
+
},
|
|
1570
|
+
questions: {
|
|
1571
|
+
amount: "Quale importo?",
|
|
1572
|
+
billedAmount: "Quale importo fatturare?",
|
|
1573
|
+
breakageKind: "Che tipo di rottura?",
|
|
1574
|
+
breakdownDays: "In quali giorni la macchina era guasta?",
|
|
1575
|
+
breakdownKind: "Che tipo di guasto?",
|
|
1576
|
+
checks: "Che cosa ha verificato?",
|
|
1577
|
+
comment: "Una parola per il cliente?",
|
|
1578
|
+
credit: "Quanto detrarre dal noleggio?",
|
|
1579
|
+
dailyCredit: "Quanto detrarre al giorno?",
|
|
1580
|
+
day: "Quale giorno?",
|
|
1581
|
+
deliveryProblemKind: "Che cosa è successo?",
|
|
1582
|
+
details: "Qualcosa da aggiungere?",
|
|
1583
|
+
documentKind: "Quale documento è il problema?",
|
|
1584
|
+
endKind: "Cosa desidera fare?",
|
|
1585
|
+
fields: "Completa le informazioni",
|
|
1586
|
+
inventoryKind: "Quale verbale di stato?",
|
|
1587
|
+
isBilled: "C'è un importo da fatturare?",
|
|
1588
|
+
lastDay: "Qual è l'ultimo giorno di utilizzo?",
|
|
1589
|
+
machineProblemKind: "Che problema ha la macchina?",
|
|
1590
|
+
materialUsageKind: "Qual è il problema?",
|
|
1591
|
+
newEnd: "Fino a quando prolungare?",
|
|
1592
|
+
period: "Quali giorni?",
|
|
1593
|
+
photos: "Quali foto allegare?",
|
|
1594
|
+
priceKnown: "Ha già l'importo del noleggiatore?",
|
|
1595
|
+
robberyDay: "Quando ha notato il furto?",
|
|
1596
|
+
robberyKind: "Che cosa è stato rubato?",
|
|
1597
|
+
stoppageKind: "Perché la macchina è ferma?",
|
|
1598
|
+
title: "Che titolo dare all'evento?",
|
|
1599
|
+
weatherDays: "In quali giorni c'è stato il maltempo?",
|
|
1600
|
+
whatHappened: "Cosa è successo?"
|
|
1601
|
+
},
|
|
1602
|
+
reasons: {
|
|
1603
|
+
booking_end: "Terminare il noleggio",
|
|
1604
|
+
booking_extension: "Prolungare il noleggio",
|
|
1605
|
+
break_repair: "Rotture significative",
|
|
1606
|
+
breakdown: "Guasto",
|
|
1607
|
+
breakdown_electric: "Guasto elettrico",
|
|
1608
|
+
breakdown_engine: "Guasto al motore",
|
|
1609
|
+
breakdown_mecanic: "Guasto meccanico",
|
|
1610
|
+
breakdown_other: "Altro guasto",
|
|
1611
|
+
damages_third_parties: "Richiesta legale di risarcimento danni",
|
|
1612
|
+
delay_in_delivery: "Ritardo nella consegna",
|
|
1613
|
+
forgetting_recover: "Dimenticato di recuperare",
|
|
1614
|
+
immobilisation: "Immobilizzazione",
|
|
1615
|
+
incompetent_operator: "Operatore incompetente",
|
|
1616
|
+
inventory_departure: "Uscita del materiale",
|
|
1617
|
+
inventory_reception: "Rientro del materiale",
|
|
1618
|
+
keys: "Chiave/Codice: smarrimento/non comunicato",
|
|
1619
|
+
machine: "Documento macchina non conforme",
|
|
1620
|
+
missing_accessory: "Accessorio mancante",
|
|
1621
|
+
no_show: "Consegna non ricevuta",
|
|
1622
|
+
operator: "Documento operatore non conforme",
|
|
1623
|
+
other: "Altro evento",
|
|
1624
|
+
other_delivery: "Altra consegna",
|
|
1625
|
+
quality_issue: "Attrezzatura in cattive condizioni",
|
|
1626
|
+
robbery_article: "Furto macchina",
|
|
1627
|
+
robbery_machine: "Furto della macchina",
|
|
1628
|
+
robbery_option: "Furto di accessorio",
|
|
1629
|
+
undeclared_use: "Uso non dichiarato",
|
|
1630
|
+
weather: "Maltempo",
|
|
1631
|
+
wrong_machine: "Errore attrezzatura"
|
|
1632
|
+
},
|
|
1633
|
+
values: {
|
|
1634
|
+
amount: "Importo",
|
|
1635
|
+
date: "Data",
|
|
1636
|
+
dates: "Periodo",
|
|
1637
|
+
description: "Commento",
|
|
1638
|
+
document_type: "Tipo di documento",
|
|
1639
|
+
final_toDate: "Ultimo giorno di utilizzo",
|
|
1640
|
+
intervention: "Il noleggiatore deve intervenire in cantiere",
|
|
1641
|
+
inventory_type: "Tipo di verbale di stato",
|
|
1642
|
+
new_toDate: "Nuova data di fine",
|
|
1643
|
+
re_bill_ratio: "Rifatturazione",
|
|
1644
|
+
reason: "Motivo",
|
|
1645
|
+
title: "Titolo dell'evento"
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
pt: {
|
|
1649
|
+
checks: {
|
|
1650
|
+
ce_conformity: "Certificado ou declaração CE verificado",
|
|
1651
|
+
ce_declaration: "Declaração de conformidade CE disponível",
|
|
1652
|
+
ce_plate: "Placa CE na máquina",
|
|
1653
|
+
documents_on_delivery: "Documentos entregues com a máquina",
|
|
1654
|
+
expected_operator: "O operador é o previsto",
|
|
1655
|
+
last_inspection_report: "Último relatório de inspeção em dia",
|
|
1656
|
+
machine_compliant: "Máquina conforme",
|
|
1657
|
+
machine_good_condition: "Máquina entregue em bom estado",
|
|
1658
|
+
machine_matches_order: "Máquina conforme à encomenda",
|
|
1659
|
+
maintenance_log: "Livro de manutenção verificado",
|
|
1660
|
+
operator_papers: "Documentos do operador disponíveis",
|
|
1661
|
+
operator_present: "Operador presente",
|
|
1662
|
+
operator_skills: "Competências do operador verificadas (carta, exame médico…)",
|
|
1663
|
+
user_manual: "Manual do fabricante disponível",
|
|
1664
|
+
vgp_control: "Inspeções periódicas verificadas"
|
|
1665
|
+
},
|
|
1666
|
+
dayHints: {
|
|
1667
|
+
breakage: "Dia da quebra",
|
|
1668
|
+
control: "Dia do controle",
|
|
1669
|
+
deliveryProblem: "Dia do problema de entrega",
|
|
1670
|
+
event: "Dia do evento",
|
|
1671
|
+
lastDay: "Último dia de utilização",
|
|
1672
|
+
newEnd: "Novo fim",
|
|
1673
|
+
operatorChange: "Primeiro dia do novo operador",
|
|
1674
|
+
problem: "Dia do problema",
|
|
1675
|
+
request: "Dia do pedido",
|
|
1676
|
+
robbery: "Dia em que o roubo foi constatado"
|
|
1677
|
+
},
|
|
1678
|
+
events: {
|
|
1679
|
+
breakage: "Quebra",
|
|
1680
|
+
breakdown: "Avaria",
|
|
1681
|
+
delivery_problem: "Entrega ou recolha",
|
|
1682
|
+
document_conformity: "Documentos não conformes",
|
|
1683
|
+
end_booking: "Fim ou prolongamento",
|
|
1684
|
+
hours_record: "Registo de horas",
|
|
1685
|
+
immobilisation: "Imobilização",
|
|
1686
|
+
inventory: "Auto de vistoria",
|
|
1687
|
+
machine_assignment: "Atribuição de máquina",
|
|
1688
|
+
machine_problem: "Problema da máquina",
|
|
1689
|
+
material_usage: "Máquina inadequada",
|
|
1690
|
+
n1_control: "Controlo N1 dos documentos",
|
|
1691
|
+
n2_control: "Controlo N2 na entrega",
|
|
1692
|
+
n3_control: "Controlo N3",
|
|
1693
|
+
operator_change: "Mudança de operador",
|
|
1694
|
+
other: "Outro",
|
|
1695
|
+
other_material: "Outro problema da máquina",
|
|
1696
|
+
other_request: "Pedido administrativo",
|
|
1697
|
+
robbery: "Roubo",
|
|
1698
|
+
stoppage: "Imobilização ou mau tempo",
|
|
1699
|
+
weather: "Mau tempo"
|
|
1700
|
+
},
|
|
1701
|
+
fields: {
|
|
1702
|
+
assigned_machine: "Máquina atribuída",
|
|
1703
|
+
code: "Código",
|
|
1704
|
+
hours_record_number: "Número da folha de horas",
|
|
1705
|
+
inspector_opinion: "Parecer do inspetor",
|
|
1706
|
+
model: "Modelo",
|
|
1707
|
+
new_operator_name: "Nome do novo operador",
|
|
1708
|
+
quantity: "Horas trabalhadas",
|
|
1709
|
+
serial_number: "Número de série",
|
|
1710
|
+
site_escort: "Acompanhante na obra",
|
|
1711
|
+
supplier_reference: "Referência interna do fornecedor"
|
|
1712
|
+
},
|
|
1713
|
+
groupQuestions: {
|
|
1714
|
+
controls: "Que controlo?",
|
|
1715
|
+
machine_problem: "Que problema tem a máquina?",
|
|
1716
|
+
operator_machine: "O que quer registar?",
|
|
1717
|
+
stoppage: "Porque está a máquina parada?"
|
|
1718
|
+
},
|
|
1719
|
+
groups: {
|
|
1720
|
+
admin_request: "Pedido administrativo",
|
|
1721
|
+
controls: "Controlo",
|
|
1722
|
+
delivery: "Entrega ou recolha",
|
|
1723
|
+
documents: "Documentos não conformes",
|
|
1724
|
+
end_booking: "Fim ou prolongamento",
|
|
1725
|
+
inventory: "Auto de vistoria",
|
|
1726
|
+
machine_problem: "Problema da máquina",
|
|
1727
|
+
operator_machine: "Operador e máquina",
|
|
1728
|
+
other: "Outro",
|
|
1729
|
+
stoppage: "Mau tempo ou imobilização"
|
|
1730
|
+
},
|
|
1731
|
+
questions: {
|
|
1732
|
+
amount: "Qual valor?",
|
|
1733
|
+
billedAmount: "Que montante faturar?",
|
|
1734
|
+
breakageKind: "Que tipo de quebra?",
|
|
1735
|
+
breakdownDays: "Em que dias a máquina esteve avariada?",
|
|
1736
|
+
breakdownKind: "Que tipo de avaria?",
|
|
1737
|
+
checks: "O que verificou?",
|
|
1738
|
+
comment: "Uma palavra para o cliente?",
|
|
1739
|
+
credit: "Quanto descontar do aluguel?",
|
|
1740
|
+
dailyCredit: "Quanto deduzir por dia?",
|
|
1741
|
+
day: "Que dia?",
|
|
1742
|
+
deliveryProblemKind: "O que aconteceu?",
|
|
1743
|
+
details: "Algo a acrescentar?",
|
|
1744
|
+
documentKind: "Que documento está em causa?",
|
|
1745
|
+
endKind: "O que pretende fazer?",
|
|
1746
|
+
fields: "Preencha as informações",
|
|
1747
|
+
inventoryKind: "Que auto de vistoria?",
|
|
1748
|
+
isBilled: "Há um montante a faturar?",
|
|
1749
|
+
lastDay: "Qual é o último dia de utilização?",
|
|
1750
|
+
machineProblemKind: "Qual é o problema da máquina?",
|
|
1751
|
+
materialUsageKind: "Qual é o problema?",
|
|
1752
|
+
newEnd: "Prolongar até quando?",
|
|
1753
|
+
period: "Que dias?",
|
|
1754
|
+
photos: "Que fotos anexar?",
|
|
1755
|
+
priceKnown: "Já tem o valor do fornecedor?",
|
|
1756
|
+
robberyDay: "Quando notou o roubo?",
|
|
1757
|
+
robberyKind: "O que foi roubado?",
|
|
1758
|
+
stoppageKind: "Porque está a máquina parada?",
|
|
1759
|
+
title: "Que título dar ao evento?",
|
|
1760
|
+
weatherDays: "Em que dias houve mau tempo?",
|
|
1761
|
+
whatHappened: "O que aconteceu?"
|
|
1762
|
+
},
|
|
1763
|
+
reasons: {
|
|
1764
|
+
booking_end: "Terminar o aluguel",
|
|
1765
|
+
booking_extension: "Prolongar o aluguel",
|
|
1766
|
+
break_repair: "Quebras significativas",
|
|
1767
|
+
breakdown: "Avaria",
|
|
1768
|
+
breakdown_electric: "Avaria elétrica",
|
|
1769
|
+
breakdown_engine: "Avaria do motor",
|
|
1770
|
+
breakdown_mecanic: "Avaria mecânica",
|
|
1771
|
+
breakdown_other: "Outra avaria",
|
|
1772
|
+
damages_third_parties: "Reclamação legal por danos a terceiros",
|
|
1773
|
+
delay_in_delivery: "Atraso na entrega",
|
|
1774
|
+
forgetting_recover: "Esqueceu-se de recuperar",
|
|
1775
|
+
immobilisation: "Imobilização",
|
|
1776
|
+
incompetent_operator: "Operador incompetente",
|
|
1777
|
+
inventory_departure: "Saída do material",
|
|
1778
|
+
inventory_reception: "Devolução do material",
|
|
1779
|
+
keys: "Chave/Código: perda/não comunicado",
|
|
1780
|
+
machine: "Documento da máquina não conforme",
|
|
1781
|
+
missing_accessory: "Acessório em falta",
|
|
1782
|
+
no_show: "Entrega não recebida",
|
|
1783
|
+
operator: "Documento do operador não conforme",
|
|
1784
|
+
other: "Outro evento",
|
|
1785
|
+
other_delivery: "Outra entrega",
|
|
1786
|
+
quality_issue: "Equipamento em mau estado",
|
|
1787
|
+
robbery_article: "Roubo de máquina",
|
|
1788
|
+
robbery_machine: "Roubo da máquina",
|
|
1789
|
+
robbery_option: "Roubo de acessório",
|
|
1790
|
+
undeclared_use: "Uso não declarado",
|
|
1791
|
+
weather: "Mau tempo",
|
|
1792
|
+
wrong_machine: "Erro de equipamento"
|
|
1793
|
+
},
|
|
1794
|
+
values: {
|
|
1795
|
+
amount: "Valor",
|
|
1796
|
+
date: "Data",
|
|
1797
|
+
dates: "Período",
|
|
1798
|
+
description: "Comentário",
|
|
1799
|
+
document_type: "Tipo de documento",
|
|
1800
|
+
final_toDate: "Último dia de utilização",
|
|
1801
|
+
intervention: "O fornecedor deve intervir na obra",
|
|
1802
|
+
inventory_type: "Tipo de auto de vistoria",
|
|
1803
|
+
new_toDate: "Nova data de fim",
|
|
1804
|
+
re_bill_ratio: "Refaturação",
|
|
1805
|
+
reason: "Motivo",
|
|
1806
|
+
title: "Título do evento"
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
}, A = ["companion", "operative"], j = {
|
|
1810
|
+
...s,
|
|
1811
|
+
breakage: {
|
|
1812
|
+
...s.breakage,
|
|
1813
|
+
reasons: [
|
|
1814
|
+
"break_repair",
|
|
1815
|
+
"damages_third_parties",
|
|
1816
|
+
"other"
|
|
1817
|
+
]
|
|
1818
|
+
},
|
|
1819
|
+
breakdown: {
|
|
1820
|
+
...s.breakdown,
|
|
1821
|
+
reasons: [
|
|
1822
|
+
"breakdown_electric",
|
|
1823
|
+
"breakdown_mecanic",
|
|
1824
|
+
"breakdown_engine",
|
|
1825
|
+
"breakdown_other"
|
|
1826
|
+
]
|
|
1827
|
+
},
|
|
1828
|
+
document_conformity: {
|
|
1829
|
+
...s.document_conformity,
|
|
1830
|
+
closesOnSubmit: !0
|
|
1831
|
+
},
|
|
1832
|
+
material_usage: {
|
|
1833
|
+
...s.material_usage,
|
|
1834
|
+
reasons: [
|
|
1835
|
+
"quality_issue",
|
|
1836
|
+
"missing_accessory",
|
|
1837
|
+
"keys",
|
|
1838
|
+
"wrong_machine",
|
|
1839
|
+
"incompetent_operator",
|
|
1840
|
+
"other"
|
|
1841
|
+
]
|
|
1842
|
+
},
|
|
1843
|
+
robbery: {
|
|
1844
|
+
...s.robbery,
|
|
1845
|
+
reasons: ["robbery_machine", "robbery_option"]
|
|
1846
|
+
}
|
|
1847
|
+
}, M = [
|
|
1848
|
+
"n1_control",
|
|
1849
|
+
"other_request",
|
|
1850
|
+
"breakdown",
|
|
1851
|
+
"immobilisation",
|
|
1852
|
+
"weather",
|
|
1853
|
+
"breakage",
|
|
1854
|
+
"other_material",
|
|
1855
|
+
"machine_assignment",
|
|
1856
|
+
"n3_control",
|
|
1857
|
+
"material_usage",
|
|
1858
|
+
"n2_control",
|
|
1859
|
+
"delivery_problem",
|
|
1860
|
+
"document_conformity",
|
|
1861
|
+
"operator_change",
|
|
1862
|
+
"hours_record",
|
|
1863
|
+
"robbery",
|
|
1864
|
+
"other"
|
|
1865
|
+
], N = [
|
|
1866
|
+
"n1_control",
|
|
1867
|
+
"n3_control",
|
|
1868
|
+
"machine_assignment",
|
|
1869
|
+
"operator_change",
|
|
1870
|
+
"hours_record"
|
|
1871
|
+
], P = [
|
|
1872
|
+
c.controls,
|
|
1873
|
+
c.admin_request,
|
|
1874
|
+
c.machine_problem,
|
|
1875
|
+
c.stoppage,
|
|
1876
|
+
c.operator_machine,
|
|
1877
|
+
c.delivery,
|
|
1878
|
+
c.documents,
|
|
1879
|
+
c.other
|
|
1880
|
+
], F = {
|
|
1881
|
+
events: M.map((e) => j[e]),
|
|
1882
|
+
groups: P,
|
|
1883
|
+
id: "bouygues",
|
|
1884
|
+
pricing: {
|
|
1885
|
+
asksReBillRatio: !0,
|
|
1886
|
+
showsPrice: !0
|
|
1887
|
+
},
|
|
1888
|
+
side: "client"
|
|
1889
|
+
}, I = {
|
|
1890
|
+
events: M.filter((e) => !N.includes(e)).map((e) => j[e]),
|
|
1891
|
+
groups: P,
|
|
1892
|
+
id: "bouyguesField",
|
|
1893
|
+
pricing: {
|
|
1894
|
+
asksReBillRatio: !1,
|
|
1895
|
+
showsPrice: !1
|
|
1896
|
+
},
|
|
1897
|
+
side: "client"
|
|
1898
|
+
}, L = [{
|
|
1899
|
+
funnels: [F, I],
|
|
1900
|
+
getFunnel: (e) => A.includes(e ?? "") ? I : F,
|
|
1901
|
+
tenants: ["bouygues"]
|
|
1902
|
+
}], R = [
|
|
1903
|
+
l,
|
|
1904
|
+
u,
|
|
1905
|
+
...L.flatMap(({ funnels: e }) => e)
|
|
1906
|
+
], z = ({ side: e, tenantName: t, roleName: n }) => e === "supplier" ? u : L.find(({ tenants: e }) => e.includes(t ?? ""))?.getFunnel(n) ?? l, B = (e) => R.find((t) => t.id === e), V = 10, H = (e) => typeof e == "object" && e && "value" in e ? H(e.value) : typeof e == "string" || typeof e == "number" ? String(e) : "", U = (e) => e === !0 || e === "true", W = (e, t) => {
|
|
1907
|
+
let n = (e) => t.find((t) => t.name === e)?.value, r = H(t.find(({ tag: e }) => e === "reason")?.value), i = e.hasTitle ? "" : H(e.reasonDetail ? n(e.reasonDetail) : r), o = n(a.dates), [s = "", c = ""] = Array.isArray(o) ? o.map(H) : [], l = H(n(h(e, i)?.name ?? a.date)), u = Number(H(n(a.unitPrice)) || NaN), d = Number.isFinite(u);
|
|
1908
|
+
return {
|
|
1909
|
+
amount: d ? String(e.price === "credit" ? Math.abs(u) : u) : "",
|
|
1910
|
+
...e.amountGate && { amountGate: d },
|
|
1911
|
+
checks: Object.fromEntries((e.checks ?? []).map((e) => [e, U(n(e))])),
|
|
1912
|
+
dates: {
|
|
1913
|
+
fromDate: (s || l).slice(0, V),
|
|
1914
|
+
toDate: (c || l).slice(0, V)
|
|
1915
|
+
},
|
|
1916
|
+
description: H(n(a.description)),
|
|
1917
|
+
fields: Object.fromEntries((e.fields ?? []).map(({ name: e }) => [e, H(n(e))])),
|
|
1918
|
+
intervention: U(n(a.intervention)),
|
|
1919
|
+
reason: i,
|
|
1920
|
+
reBillRatio: H(n(a.reBillRatio)),
|
|
1921
|
+
title: e.hasTitle ? r : ""
|
|
1922
|
+
};
|
|
1923
|
+
}, G = (e, t, { reason: n }) => e.reasonDetail === t.reasonDetail && !!e.hasTitle == !!t.hasTitle && (!!e.hasTitle || !!e.reasonDetail || (e.reasons?.includes(n) ?? n === e.reason)), K = ({ workflow: e, workflowValues: t }, n) => {
|
|
1924
|
+
if (!T(e)) return;
|
|
1925
|
+
let r = n.side === e.side ? n.events.find(({ id: t }) => t === e.eventId) : void 0, i = B(e.funnel)?.events.find(({ id: t }) => t === e.eventId) ?? r;
|
|
1926
|
+
if (!i) return;
|
|
1927
|
+
let a = W(i, t ?? []), o = r && G(r, i, a) ? r : void 0;
|
|
1928
|
+
return {
|
|
1929
|
+
answers: a,
|
|
1930
|
+
event: o ?? i,
|
|
1931
|
+
isOffered: !!o,
|
|
1932
|
+
side: e.side
|
|
1933
|
+
};
|
|
1934
|
+
};
|
|
1935
|
+
//#endregion
|
|
1936
|
+
export { s as CLIENT_EVENTS, c as CLIENT_GROUPS, C as DEDICATED_FUNNEL, l as DEFAULT_CLIENT_FUNNEL, k as EVENT_LOCALES, n as EVENT_NAMESPACE, o as INVENTORY_ID, r as NATIVE_EVENT_SOURCE, i as NATIVE_EVENT_VERSION, u as SUPPLIER_FUNNEL, a as VALUE_NAMES, E as buildEventPayload, B as findEventFunnel, w as getDedicatedEventWorkflow, h as getEndDate, p as getEventAmounts, z as getEventFunnel, _ as getFirstQuestion, m as getFunnelGroups, y as getReason, g as getSteps, f as getUnitPrice, T as isNativeEventWorkflow, v as isStepAnswered, K as readEvent, d as toDecimal, O as useEventDeclaration };
|