Condition type K004 for material discount is only looking for a condition record for the reference material and ignoring the condition record for the actual material.
How can make the system search for the martial record first and if not found try to find the reference material record. Please provide examples.