kryo, lets say a upgrade / item costs usually 6000 money, but with coin purse (reduces price by 10%) it only costs 5400. If you now have lets say 5800 gold you still can't buy it - you need 6000. But when you have 6000 money the correct price of 5400 is deducted.
PS: bug seems to be fixed in newest version.