return quantity in AddTransaction