Moved quantity check to PurchaseItemPanel::addItemEventHandler() so it
won't break history tab.