Example 1 – User attached legal entity “HKG” to code “0002” of type “HFM”. System should not allow if user tries to attach legal entity “HKG” for same code "0002" of same type “HFM” once again. Then system should trigger error message “Legal entity HKG already attached to HFM code 0002. Please remove and try to attach.”
Example 2 – User attached legal entity “HKG” to code “0002” of type “HFM”. System should allow if user tries to attach legal entity “HKG” for same code "0002" of different type “REVAL”.
Here,
Legal entity, Code , type are the table fields.
type have two values : HFM, REVAL.