I'd agree with most of this, but there actually is a "sell all wares" option. You have to switch over from "barter" to "trade" with the little toggle at the top of the trade screen.
No, I don't know why it doesn't work in barter mode, but it doesn't.