|
@ -72,8 +72,12 @@ export class ImportService { |
|
|
}) |
|
|
}) |
|
|
]); |
|
|
]); |
|
|
|
|
|
|
|
|
const accounts = orders.map((order) => { |
|
|
const accounts = orders |
|
|
return order.Account; |
|
|
.filter(({ Account }) => { |
|
|
|
|
|
return !!Account; |
|
|
|
|
|
}) |
|
|
|
|
|
.map(({ Account }) => { |
|
|
|
|
|
return Account; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
const Account = this.isUniqueAccount(accounts) ? accounts[0] : undefined; |
|
|
const Account = this.isUniqueAccount(accounts) ? accounts[0] : undefined; |
|
|