Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
Member name now extracted from payment metadata (addresses #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
owenjones committed Dec 14, 2019
1 parent 5ff4000 commit d1157a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion reconciler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from openpyxl import Workbook
from reconciler.mail import drivers

from pprint import pprint

class Reconciler :

_mail = None # Parameters used for sending result by mail
Expand Down Expand Up @@ -159,7 +161,8 @@ def _fetchPayments(self, after = False) :
"payment_date" : p.charge_date,
"payment_amount_gross" : round((p.amount / 100), 2),
"payment_amount_net" : self._calculateNet(p.amount),
"payment_description" : p.description
"payment_description" : p.description,
"member_name" : p.metadata["Member"]
}
parsed = self._parseDescription(p.description)
self._payments.append({ **payout, **parsed })
Expand Down

0 comments on commit d1157a2

Please sign in to comment.