Added update function to populate 'number' and 'quantity' fields.