Declare type for line in map of orderlines
This commit is contained in:
@@ -81,7 +81,7 @@ export class Stock implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const orderLines = this.createPurchaseOrder().lines.value.map(line => ({
|
const orderLines = this.createPurchaseOrder().lines.value.map((line: { productId: any; quantity: any; }) => ({
|
||||||
productId: line.productId,
|
productId: line.productId,
|
||||||
quantity: line.quantity
|
quantity: line.quantity
|
||||||
}));
|
}));
|
||||||
@@ -113,7 +113,7 @@ export class Stock implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const orderLines = this.createQuotation().lines.value.map(line => ({
|
const orderLines = this.createQuotation().lines.value.map((line: { productId: any; quantity: any; }) => ({
|
||||||
productId: line.productId,
|
productId: line.productId,
|
||||||
quantity: line.quantity
|
quantity: line.quantity
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user