Declare type for line in map of orderlines

This commit is contained in:
2026-05-28 10:53:48 +01:00
parent d37ff4ace4
commit 4de58d6f6e
+2 -2
View File
@@ -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
}));