Hello
There is no reference to the schedule agreement on the quota arrangement. Also, the only link between the source list record and the quota arrangement items is the vendor. Since the same vendor is used for both records, system will choose the first one.
As I already mentioned previously, for such complex scenario, you should use BAdI MD_MODIFY_SOURCE.
BR
Caetano