I was trying to run this function but it didn't work. I used map and forEach and the same result. I don't have an error, just run but apparently don't iterate. ShowAlert doesn't show the message either.
Maybe I am doing something wrong . I'm storing the parameters using storeValue and the run the function. Basically is an invoice detail insert.
fnMaptest: async() => {
let loline = await tblShopifyOrders.selectedRow.line_items.map(line => ( {...line}) );
await loline.map((line) => {
storeValue('loShopifyInvoiceDetailsParameters',{invoice_uq: '7AE4F1DC', itemId: line.product_id, qty: line.quantity, price: line.price, saleman_uq: '7667B2FE', notes: 'TEST'});
showAlert(line.product_id)
fnInsertShopifyInvoiceDetails.run()
}
)
return
}
Thank you for your help,
Carlos