From 4de58d6f6ec38203b9147d39f72c6b8fc19ea01c Mon Sep 17 00:00:00 2001 From: sanchezvem Date: Thu, 28 May 2026 10:53:48 +0100 Subject: [PATCH] Declare type for line in map of orderlines --- src/app/pages/stock/stock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/stock/stock.ts b/src/app/pages/stock/stock.ts index ba0b21a..56b6ab7 100644 --- a/src/app/pages/stock/stock.ts +++ b/src/app/pages/stock/stock.ts @@ -81,7 +81,7 @@ export class Stock implements OnInit { return; } - const orderLines = this.createPurchaseOrder().lines.value.map(line => ({ + const orderLines = this.createPurchaseOrder().lines.value.map((line: { productId: any; quantity: any; }) => ({ productId: line.productId, quantity: line.quantity })); @@ -113,7 +113,7 @@ export class Stock implements OnInit { return; } - const orderLines = this.createQuotation().lines.value.map(line => ({ + const orderLines = this.createQuotation().lines.value.map((line: { productId: any; quantity: any; }) => ({ productId: line.productId, quantity: line.quantity }));