@movalib/movalib-commons 1.68.9 → 1.68.11
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.
|
@@ -285,21 +285,17 @@ var VehicleFullCard = function (_a) {
|
|
|
285
285
|
borderColor: "divider",
|
|
286
286
|
} }, { children: "Modifier" })))] }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { px: 2, py: 1.5, borderBottom: "0.5px solid", borderColor: "divider" } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", sx: sectionTitleSx }, { children: "Kilom\u00E9trage" })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 1 } }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { bgcolor: "grey.50", borderRadius: 1, p: 1.25 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "caption", color: "text.secondary", display: "block" }, { children: "Actuel" })), !localEditMode ? ((0, jsx_runtime_1.jsxs)(material_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: [(_b = vehicle.currentMileage) !== null && _b !== void 0 ? _b : "-", " ", (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ component: "span", variant: "caption", color: "text.secondary" }, { children: "km" }))] }))) : ((0, jsx_runtime_1.jsx)(material_1.TextField, { name: "currentMileage", variant: "standard", type: "number", required: true, value: (_c = form.currentMileage.value) !== null && _c !== void 0 ? _c : "", onChange: handleInputChange, error: Boolean(form.currentMileage.error), helperText: Boolean(form.currentMileage.error && form.currentMileage.value > 0)
|
|
287
287
|
? form.currentMileage.error
|
|
288
|
-
: "Sur votre tableau de bord 😉", InputProps: { disableUnderline: false }, sx: { mt: 0.5, width: "100%" } }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { bgcolor: "grey.50", borderRadius: 1, p: 1.25 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "caption", color: "text.secondary", display: "block" }, { children: "Moyen annuel" })), !localEditMode ? ((0, jsx_runtime_1.jsxs)(material_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: [(_d = vehicle.averageMileagePerYear) !== null && _d !== void 0 ? _d : "-", " ", (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ component: "span", variant: "caption", color: "text.secondary" }, { children: "km" }))] }))) : ((0, jsx_runtime_1.jsxs)(material_1.FormControl, __assign({ fullWidth: true, variant: "standard", error: Boolean(form.averageMileagePerYear.error) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Select, __assign({ name: "averageMileagePerYear", value: form.averageMileagePerYear.value ? String(form.averageMileagePerYear.value) : "", onChange: handleSelectChange, disableUnderline: false, sx: { mt: 0.5, fontSize: 14 } }, { children: [[5000, 10000, 15000, 20000, 25000, 30000, 50000, 75000, 100000].map(function (v) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, __assign({ value: v }, { children: v.toLocaleString("fr-FR") }), v)); }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, __assign({ value: 999999 }, { children: "+100 000" }))] })), (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: form.averageMileagePerYear.error })] })))] }))] }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { px: 2, py: 1.5, borderBottom: "0.5px solid", borderColor: "divider" } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", sx: sectionTitleSx }, { children: "Identit\u00E9 technique" })), localEditMode && form.vehicleModel && vehicle.foreignPlate && ((0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Mod\u00E8le de la voiture", name: "vehicleModel", variant: "outlined", type: "text", required: true, fullWidth: true, value: form.vehicleModel.value, onChange: handleInputChange, error: Boolean(form.vehicleModel.error), sx: { mb: 1.5, "& input": { textTransform: "uppercase" } } })), vehicle.firstRegistrationDate && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Mise en circulation" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: formatDate(vehicle.firstRegistrationDate) }))] }))), vehicle.vin && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "VIN" })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { display: "flex", alignItems: "center", gap: 0.5 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500
|
|
288
|
+
: "Sur votre tableau de bord 😉", InputProps: { disableUnderline: false }, sx: { mt: 0.5, width: "100%" } }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { bgcolor: "grey.50", borderRadius: 1, p: 1.25 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "caption", color: "text.secondary", display: "block" }, { children: "Moyen annuel" })), !localEditMode ? ((0, jsx_runtime_1.jsxs)(material_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: [(_d = vehicle.averageMileagePerYear) !== null && _d !== void 0 ? _d : "-", " ", (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ component: "span", variant: "caption", color: "text.secondary" }, { children: "km" }))] }))) : ((0, jsx_runtime_1.jsxs)(material_1.FormControl, __assign({ fullWidth: true, variant: "standard", error: Boolean(form.averageMileagePerYear.error) }, { children: [(0, jsx_runtime_1.jsxs)(material_1.Select, __assign({ name: "averageMileagePerYear", value: form.averageMileagePerYear.value ? String(form.averageMileagePerYear.value) : "", onChange: handleSelectChange, disableUnderline: false, sx: { mt: 0.5, fontSize: 14 } }, { children: [[5000, 10000, 15000, 20000, 25000, 30000, 50000, 75000, 100000].map(function (v) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, __assign({ value: v }, { children: v.toLocaleString("fr-FR") }), v)); }), (0, jsx_runtime_1.jsx)(material_1.MenuItem, __assign({ value: 999999 }, { children: "+100 000" }))] })), (0, jsx_runtime_1.jsx)(material_1.FormHelperText, { children: form.averageMileagePerYear.error })] })))] }))] }))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { px: 2, py: 1.5, borderBottom: "0.5px solid", borderColor: "divider" } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", sx: sectionTitleSx }, { children: "Identit\u00E9 technique" })), localEditMode && form.vehicleModel && vehicle.foreignPlate && ((0, jsx_runtime_1.jsx)(material_1.TextField, { label: "Mod\u00E8le de la voiture", name: "vehicleModel", variant: "outlined", type: "text", required: true, fullWidth: true, value: form.vehicleModel.value, onChange: handleInputChange, error: Boolean(form.vehicleModel.error), sx: { mb: 1.5, "& input": { textTransform: "uppercase" } } })), vehicle.firstRegistrationDate && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Mise en circulation" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: formatDate(vehicle.firstRegistrationDate) }))] }))), vehicle.vin && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "VIN" })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { display: "flex", alignItems: "center", gap: 0.5 } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.vin })), (0, jsx_runtime_1.jsx)(material_1.IconButton, __assign({ size: "small", sx: { p: 0.25 }, onClick: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
289
289
|
switch (_a.label) {
|
|
290
290
|
case 0: return [4 /*yield*/, navigator.clipboard.writeText(vehicle.vin)];
|
|
291
291
|
case 1: return [2 /*return*/, _a.sent()];
|
|
292
292
|
}
|
|
293
|
-
}); }); }, "aria-label": "Copier le VIN" }, { children: (0, jsx_runtime_1.jsx)(icons_material_1.ContentCopy, { sx: { fontSize: 13, color: "text.disabled" } }) }))] }))] }))), vehicle.energy && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "\u00C9nergie" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.energy }))] }))), vehicle.gearboxType && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Type bo\u00EEte" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.gearboxType }))] }))), vehicle.gearboxCode && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Code bo\u00EEte" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.gearboxCode }))] }))), vehicle.engineCode && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Code moteur" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500
|
|
294
|
-
bgcolor: "#E6F1FB",
|
|
295
|
-
color: "#0C447C",
|
|
293
|
+
}); }); }, "aria-label": "Copier le VIN" }, { children: (0, jsx_runtime_1.jsx)(icons_material_1.ContentCopy, { sx: { fontSize: 13, color: "text.disabled" } }) }))] }))] }))), vehicle.energy && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "\u00C9nergie" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.energy }))] }))), vehicle.gearboxType && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Type bo\u00EEte" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.gearboxType }))] }))), vehicle.gearboxCode && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Code bo\u00EEte" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.gearboxCode }))] }))), vehicle.engineCode && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Code moteur" })), (0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: vehicle.engineCode }))] })))] })), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { px: 2, py: 1.5, borderBottom: "0.5px solid", borderColor: "divider" } }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", sx: sectionTitleSx }, { children: "Pneumatiques" })), !localEditMode ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: isVehicleSecondaryTireSizeDefined(vehicle) ? "Avant" : "Taille" })), isVehicleTireSizeDefined(vehicle) ? ((0, jsx_runtime_1.jsx)(material_1.Chip, { label: (0, Tools_1.formatVehicleTire)(vehicle.tireSize), size: "small", color: "primary", sx: {
|
|
296
294
|
fontWeight: 500,
|
|
297
295
|
fontSize: 12,
|
|
298
296
|
height: 24,
|
|
299
297
|
"& .MuiChip-label": { px: 1 },
|
|
300
|
-
} })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.disabled" }, { children: "\u2014" })))] })), isVehicleSecondaryTireSizeDefined(vehicle) && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Arri\u00E8re" })), (0, jsx_runtime_1.jsx)(material_1.Chip, { label: (0, Tools_1.formatVehicleTire)(vehicle.secondaryTireSize), size: "small", sx: {
|
|
301
|
-
bgcolor: "#E6F1FB",
|
|
302
|
-
color: "#0C447C",
|
|
298
|
+
} })) : ((0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.disabled" }, { children: "\u2014" })))] })), isVehicleSecondaryTireSizeDefined(vehicle) && ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: rowSx }, { children: [(0, jsx_runtime_1.jsx)(material_1.Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: "Arri\u00E8re" })), (0, jsx_runtime_1.jsx)(material_1.Chip, { label: (0, Tools_1.formatVehicleTire)(vehicle.secondaryTireSize), size: "small", color: "primary", sx: {
|
|
303
299
|
fontWeight: 500,
|
|
304
300
|
fontSize: 12,
|
|
305
301
|
height: 24,
|
|
@@ -334,7 +330,7 @@ var VehicleFullCard = function (_a) {
|
|
|
334
330
|
px: 1.5,
|
|
335
331
|
py: 0.75,
|
|
336
332
|
mb: 0.75,
|
|
337
|
-
} }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, __assign({ title: invoice.originalFileName }, { children: (0, jsx_runtime_1.jsx)(material_1.Link, __assign({ href: invoice.fileSignedUrl, target: "_blank", rel: "noopener", underline: "hover", sx: { fontSize: 13, color: "#185FA5", flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }, { children: invoice.fileName })) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, __assign({ size: "small", disabled: !(invoice.ownerId.toString() === currentUser.id), onClick: function (e) { return handleDeleteDocument(e, invoice === null || invoice === void 0 ? void 0 : invoice.id); }, sx: { ml: 1, flexShrink: 0 } }, { children: (0, jsx_runtime_1.jsx)(CloseRounded_1.default, { sx: { fontSize: 16 } }) }))] }), index + 1)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { mt: 1.5 } }, { children: [(0, jsx_runtime_1.jsx)("input", { accept: "image/*, application/pdf", type: "file", style: { display: "none" }, ref: invoiceInputRef, id: "raised-button-invoice", onChange: function (e) { return handleFileChange(e, docTypeCurrent.current); } }), (0, jsx_runtime_1.jsx)(material_1.Button, __assign({ fullWidth: true, size: "medium", disabled: currentUpload, onClick: function () { return setShowLinkedDocument(true); }, component: "span", variant: "outlined", startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.AttachFile, {}), sx: {
|
|
333
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(material_1.Tooltip, __assign({ title: invoice.originalFileName }, { children: (0, jsx_runtime_1.jsx)(material_1.Link, __assign({ href: invoice.fileSignedUrl, target: "_blank", rel: "noopener", underline: "hover", sx: { fontSize: 13, color: "#185FA5", flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontFamily: "Outfit" } }, { children: invoice.fileName })) })), (0, jsx_runtime_1.jsx)(material_1.IconButton, __assign({ size: "small", disabled: !(invoice.ownerId.toString() === currentUser.id), onClick: function (e) { return handleDeleteDocument(e, invoice === null || invoice === void 0 ? void 0 : invoice.id); }, sx: { ml: 1, flexShrink: 0 } }, { children: (0, jsx_runtime_1.jsx)(CloseRounded_1.default, { sx: { fontSize: 16 } }) }))] }), index + 1)); }), (0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: { mt: 1.5 } }, { children: [(0, jsx_runtime_1.jsx)("input", { accept: "image/*, application/pdf", type: "file", style: { display: "none" }, ref: invoiceInputRef, id: "raised-button-invoice", onChange: function (e) { return handleFileChange(e, docTypeCurrent.current); } }), (0, jsx_runtime_1.jsx)(material_1.Button, __assign({ fullWidth: true, size: "medium", disabled: currentUpload, onClick: function () { return setShowLinkedDocument(true); }, component: "span", variant: "outlined", startIcon: (0, jsx_runtime_1.jsx)(icons_material_1.AttachFile, {}), sx: {
|
|
338
334
|
border: "1.5px dashed",
|
|
339
335
|
borderColor: "divider",
|
|
340
336
|
color: "text.secondary",
|
package/dist/src/models/Event.js
CHANGED
|
@@ -80,7 +80,7 @@ var Event = /** @class */ (function () {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
return ((_e = quoteDocument.find(function (doc) { return doc.state === Enums_1.DocumentState.APPROVED; })) !== null && _e !== void 0 ? _e : null);
|
|
83
|
+
return ((_e = quoteDocument.find(function (doc) { return doc.state === Enums_1.DocumentState.APPROVED && doc.sinaoDocumentId === null; })) !== null && _e !== void 0 ? _e : null);
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
return null;
|
package/package.json
CHANGED
|
@@ -523,7 +523,7 @@ const VehicleFullCard: FC<VehicleFullCardProps> = ({
|
|
|
523
523
|
<Box sx={rowSx}>
|
|
524
524
|
<Typography variant="body2" color="text.secondary">VIN</Typography>
|
|
525
525
|
<Box sx={{ display: "flex", alignItems: "center", gap: 0.5 }}>
|
|
526
|
-
<Typography variant="body2" fontWeight={500}
|
|
526
|
+
<Typography variant="body2" fontWeight={500}>
|
|
527
527
|
{vehicle.vin}
|
|
528
528
|
</Typography>
|
|
529
529
|
<IconButton
|
|
@@ -560,7 +560,7 @@ const VehicleFullCard: FC<VehicleFullCardProps> = ({
|
|
|
560
560
|
{vehicle.engineCode && (
|
|
561
561
|
<Box sx={rowSx}>
|
|
562
562
|
<Typography variant="body2" color="text.secondary">Code moteur</Typography>
|
|
563
|
-
<Typography variant="body2" fontWeight={500}
|
|
563
|
+
<Typography variant="body2" fontWeight={500}>
|
|
564
564
|
{vehicle.engineCode}
|
|
565
565
|
</Typography>
|
|
566
566
|
</Box>
|
|
@@ -581,9 +581,8 @@ const VehicleFullCard: FC<VehicleFullCardProps> = ({
|
|
|
581
581
|
<Chip
|
|
582
582
|
label={formatVehicleTire(vehicle.tireSize)}
|
|
583
583
|
size="small"
|
|
584
|
+
color="primary"
|
|
584
585
|
sx={{
|
|
585
|
-
bgcolor: "#E6F1FB",
|
|
586
|
-
color: "#0C447C",
|
|
587
586
|
fontWeight: 500,
|
|
588
587
|
fontSize: 12,
|
|
589
588
|
height: 24,
|
|
@@ -600,9 +599,9 @@ const VehicleFullCard: FC<VehicleFullCardProps> = ({
|
|
|
600
599
|
<Chip
|
|
601
600
|
label={formatVehicleTire(vehicle.secondaryTireSize)}
|
|
602
601
|
size="small"
|
|
602
|
+
color="primary"
|
|
603
603
|
sx={{
|
|
604
|
-
|
|
605
|
-
color: "#0C447C",
|
|
604
|
+
|
|
606
605
|
fontWeight: 500,
|
|
607
606
|
fontSize: 12,
|
|
608
607
|
height: 24,
|
|
@@ -782,7 +781,7 @@ const VehicleFullCard: FC<VehicleFullCardProps> = ({
|
|
|
782
781
|
target="_blank"
|
|
783
782
|
rel="noopener"
|
|
784
783
|
underline="hover"
|
|
785
|
-
sx={{ fontSize: 13, color: "#185FA5", flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}
|
|
784
|
+
sx={{ fontSize: 13, color: "#185FA5", flex: 1, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap", fontFamily: "Outfit" }}
|
|
786
785
|
>
|
|
787
786
|
{invoice.fileName}
|
|
788
787
|
</Link>
|
package/src/models/Event.ts
CHANGED
|
@@ -251,7 +251,7 @@ export default class Event {
|
|
|
251
251
|
}
|
|
252
252
|
else {
|
|
253
253
|
return (
|
|
254
|
-
quoteDocument.find((doc) => doc.state === DocumentState.APPROVED) ??
|
|
254
|
+
quoteDocument.find((doc) => doc.state === DocumentState.APPROVED && doc.sinaoDocumentId === null) ??
|
|
255
255
|
null
|
|
256
256
|
);
|
|
257
257
|
}
|