diff --git a/resources/ts/components/InvoiceTasksComponent.vue b/resources/ts/components/InvoiceTasksComponent.vue index 508092f..b9dcb7b 100644 --- a/resources/ts/components/InvoiceTasksComponent.vue +++ b/resources/ts/components/InvoiceTasksComponent.vue @@ -290,6 +290,7 @@ export default defineComponent({ }, updateAmount(index: number): void { const task = this.tasks[index]; + task.package = null; switch (task.type) { case this.getTaskTypeEnum("web").value: case this.getTaskTypeEnum("seo").value: @@ -298,6 +299,7 @@ export default defineComponent({ case this.getTaskTypeEnum("forfait").value: task.amount = task.days * ((task.packageModel?.amount ?? 0) as number); + task.package = (task.packageModel?.id as number) ?? null; break; case this.getTaskTypeEnum("libre").value: // Do nothing, free input