Hi. Can anyone help me write a plugin to calculate fields in an entity based on another fields from another entity.
So i have created a new entity summary order products that has only one line for all order products summary in one order.
This entity has product name field, total cost, total margin and ROI.
I have to create a plugin to calculate these fields based on fields in the order product entity.
This is the fetch xml i have to use inside the plugin.