We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dcc5b3 commit 27b809dCopy full SHA for 27b809d
1 file changed
csv2ofx/mappings/amazon.py
@@ -48,8 +48,15 @@ def filter_pending(row):
48
return row['date'] != 'pending'
49
50
51
+def filter_cancelled(row):
52
+ """
53
+ Cancelled orders have no total.
54
55
+ return bool(row['total'])
56
+
57
58
def filter(row):
- return filter_pending(row) and filter_payment(row)
59
+ return filter_pending(row) and filter_payment(row) and filter_cancelled(row)
60
61
62
mapping = {
0 commit comments