Hello everyone,
I am new to Mendix and I am trying to develop a very simple project. This is my domain model:
Image may be NSFW.
Clik here to view.
The value of the amount attribute should be unitPrice * Quantity. The thing is that the OrderLine unitPrice should be the Product unitPrice and I can't find a way to get it from the Product and assign that value to the OrderLine unitPrice. I tried to use a microflow with a Change Object action which would multiply the OrderLine quantity by the Product unitPrice, but there's no way I can access the Product unitPrice through the OrderLine ( which is a parameter of the microflow). Any ideas? Thank you in advance.