From a33132e1d4a6dd60e6d8d77166166c5def7c1855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Tue, 30 Aug 2022 09:50:25 +0200 Subject: [PATCH] Invoice component fixed task parsing --- resources/ts/components/InvoiceTasksComponent.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/ts/components/InvoiceTasksComponent.vue b/resources/ts/components/InvoiceTasksComponent.vue index 3cf8eba..cd08d73 100644 --- a/resources/ts/components/InvoiceTasksComponent.vue +++ b/resources/ts/components/InvoiceTasksComponent.vue @@ -198,6 +198,10 @@ export default defineComponent({ (packageModel: LaravelModel) => packageModel.id === task.package ) ?? null; } + if (task.type !== this.getTaskTypeEnum("forfait").value) { + task.package = null; + task.packageModel = null; + } }); this.tasks = tasks;