Refactor tickets

@kalabiyau No, because I want the value of the attribute :quantity