Item Rule| Supplier Association
I have multiple suppliers for an item. Whenever an Item is associated with a new supplier, I want to control the primary flag of supplier associations based on Eff attribute at the item level.
This is my business use case
If an item has no supplier association, when a new supplier is associated, the new(the only) supplier has to be marked as primary
if an item has already existing association (s), based on a particular EFF attribute either set the new supplier as primary or leave existing primary supplier as it.
As of now, I am controlling this from batch itself. I have scheduled batch which fetches all the items and updates the primary flag of associations using ICS.