Fix bug where dedications were getting saved in place of DESIGNATIONS

This commit is contained in:
Eric Schultz 2018-10-03 16:02:54 -05:00 committed by Eric Schultz
parent 227bb8ff14
commit 10b6a8ba18

View file

@ -91,7 +91,7 @@ module UpdateDonation
# edits_to_payments
if is_offsite
#if offline, set date, gross_amount, fee_total, net_amount
existing_payment.towards = data[:dedication] if data[:dedication]
existing_payment.towards = data[:designation] if data[:designation]
existing_payment.date = data[:date] if data[:date]
existing_payment.gross_amount = data[:gross_amount] if data[:gross_amount]
existing_payment.fee_total = data[:fee_total] if data[:fee_total]