I have two content types (Inventory and Sales). In Sales, I referenced Inventory using the Entity reference module.
In Inventory, I have a stock_available (integer) field. In Sales, I also have the same field, so that I can automatically populate its value from Inventory using the Entity reference autofill module.
When I add a new Sales node, I want to adjust the value of stock_available in the referenced Inventory, so that gradually it becomes zero in the referenced Inventory node.
I know how to set value/calculated value from other filed within same content type, by using the Rules module.
I have no idea how I can do same things to targeted entity reference node. I think it's possible by just rule configuration. Please let me know if something needs to change to get same output that I expected.