Declare type for line in map of orderlines
This commit is contained in:
@@ -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
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user