On a modal with JSON form to create an Expense with Expense Lines (invoice line). On the line I want user to fill in Quantity and Price Unit, and the Sub Total is computed.
In the second picture, you can see that I try to compute the Sub Total,
{{formData.invoice_line_ids[0].quantity * formData.invoice_line_ids[0].price_unit}}
But because, I am using index = 0, this works only for the 1st line and won’t work for 2nd line.
How can I write the code to dynamically reference the child element to achieve the computation on 2nd line?