Skip to content

Commit

Permalink
[FIX] Accept external refund
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Mar 26, 2024
1 parent a9013a6 commit 167ad02
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion account_move_adyen_import/parser/adyen_file_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ def _post(self, *args, **kwargs):
+ row["Scheme Fees (NC)"]
+ row["Interchange (NC)"]
)
if row.get("Type") in ("Settled", "Refunded", "SentForSettle"):
if row.get("Type") in (
"Settled",
"Refunded",
"SentForSettle",
"SentForRefund",
):
final_rows.append(row)
elif row["Type"] == "Fee":
self.extra_commission += row["Net Debit (NC)"]
Expand Down

0 comments on commit 167ad02

Please sign in to comment.