Goods quantity checking in transactions