Microflow calculate total price

0
I have an page called Orderline, with the attributes OrderlineTotal, OrderlinePrice, ProductCode and OrderNumber. I want to calculate alles the Prices  which belongs to the specific OrderNumber. Both have Ordernumber 1: OrderlineTotal is 1 with OrderlinePrice 5,99 & ProductCode SR24 OrdelineTotal is 2 with OrderlinePrice 30,98 & ProductCode HJ24 I want to count the 2 OrderlinePrice using a microflow, so I can see a total price for OrderNumber 1. Any one can help me?  
asked
2 answers
-1

Hi Niels,

Perhaps this page can help you: https://docs.mendix.com/howto/logic-business-rules/working-with-lists-in-a-microflow.

For calculation of totals: https://docs.mendix.com/howto/logic-business-rules/working-with-lists-in-a-microflow#4-calculating-a-total-list-value-using-a-variable-and-a-loop and https://docs.mendix.com/howto/logic-business-rules/working-with-lists-in-a-microflow#5-calculate-a-total-list-value-using-an-aggregate-function.

I think that when you read this page, you will get your answer on how to get the total price for OrderNumber 1.

 

Kind regards,

Jeffrey

answered
-2

Make a list of the orderlines for which you want to calculate the price. The total price can be calculate with the aggregate list action.

answered