Hi,
there is link between customer and vendor in customer master you can see vendor and clearing with vendor option once you select this whenever you clear customer or vendor system will pickup the all the line items if you clear customer with vendor clearing customer balance will go down and it's affected to fd32.
I hope it helps.
Regards,
Raman