Made null or empty total titles fall back to default labels; added a note about the discount_type field (from the loyalty-discounts branch).