Ok, Literally just found this. 1. First you go into any shop. I did it on the rare shop. 2. You have a item in your keep thats in that shop. 3. You sell that item. 4. You buy both back 5. You most likely bought a 500 gold item, and now have negative gold. You didn't GET said item, but now your gold is really negative. After further inspection, It doesn't really do anything but it would be nice if it was fixed c:
Dandanover9000, about how much gold did you have? Before you sold the one item? Before you bought the one, then two items? Also, how do you mean "it doesn't really do anything"? What exactly does it not do (vs. what it does do)?
Seems a similar behiavour to the one you can see moving an item showcased in a treasure hunt to the correct equipment slot of your party. I'd guess that the game calculates your purchases and saves them only after leaving the shop.