Add missing Discount Code column to payment hsitory export. Closes #1326