Hi, i have create an invoice and receipt entity, which is many receipt to one invoice. how to produce the calculation based on the picture shown which is create a receipt related to invoice, and calculate the receipt amount minus invoice amount then update back to outstanding amount and paid amount in workflow?