Fix undefined index for discounts. #1919
Update customer ID
Improve Total Spent line. #1919
Fix undefined indexes. #1919