{{response.title=base_title + ' Management: ' + T('List of amounts paid by each sponsor')}} {{extend 'layout.html'}}

Management: amounts paid by sponsors, grouped by username

Highest amounts first, with totals >£150 highlighed in pink. Donors who have sponsored more than one leaf have OTTs in red, and are good candidates for filling out the verified_donor_name field by hand in the db. This can be done by copying and pasting the list of numbers below into an SQL query like

update reservations set verified_donor_name = 'Richard Dawkins' where OTT_ID in (...)

Try this link to additionally group by verified_donor_name, which will split up payments from the same paypal account but which have a different verified_donor_name - this will be equivalent to the display shown on the donor_list page. Since verified_donor_name is currently inserted by hand for large value donors, it may be worth splitting up the lower value donors into individual leaf sponsorships so that we don't have to email them to get the donor names.

    {{for person in rows:}}
  • £{{=person[cols['sum_paid']]}}: {{=person[cols['donor_name']] or person[cols['e_mail']]}} {{=("(user: " + person[cols['username']]+")") if person[cols['username']] else 'no username'}}. OTTs: {{=person[cols['grouped_otts']]}}
  • {{pass}}