Spend enough to get Vendor Attitude up to 100, do some buying, do some selling, go off an adventure, long rest somewhere in there, come back to a vendor at 0 attitude.
Bug or intended? If intended I'll just pretend the feature doesn't exist cause it's expensive! not like the 200g it use to be if you were going to have a big buy up or sell off.