if you have (for instance) 50 of something in your vendor and you only have enough space to carry say 25 of that but you try getting out all 50, it says "you can only carry 25 of those" and yet all 50 are still gone from your shop.
kinda big bug for those people who are inaccurate with what there getting out.