Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/114054

Change subject: (FR #1323) ignore debits unless it is a refund
......................................................................

(FR #1323) ignore debits unless it is a refund

This prevents us from sending thank-you letters to self for taking money out of 
the account.

Change-Id: I621f7d39d968d229847352522afd45a4ba980ed8
---
M audit/paypal/TrrFile.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/tools 
refs/changes/54/114054/1

diff --git a/audit/paypal/TrrFile.py b/audit/paypal/TrrFile.py
index 479435c..d9d9f8e 100644
--- a/audit/paypal/TrrFile.py
+++ b/audit/paypal/TrrFile.py
@@ -80,6 +80,9 @@
             if row['Transaction Event Code'] == 'T0002':
                 queue = 'recurring'
                 out = self.normalize_recurring(out)
+            elif row['Transaction  Debit or Credit'] == 'DR':
+                log.info(-"Debit\t{id}\t{date}\tPayment 
to".format(id=out['gateway_txn_id'], date=out['date'])
+                return
             else:
                 queue = 'donations'
         elif event_type in ('T11', 'T12'):

-- 
To view, visit https://gerrit.wikimedia.org/r/114054
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I621f7d39d968d229847352522afd45a4ba980ed8
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/tools
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to