From 2f2afcab069a5eeb119175c2c40cbc3face1f555 Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Tue, 3 Sep 2024 18:07:02 -0400 Subject: [PATCH] chore: linter --- .../accounts/doctype/payment_entry/payment_entry.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 376a580354dd..ab277ee854ca 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -1067,10 +1067,16 @@ def add_party_gl_entries(self, gl_entries): is_return = frappe.db.get_value(d.reference_doctype, d.reference_name, "is_return") payable_party_types = get_party_types_from_account_type("Payable") receivable_party_types = get_party_types_from_account_type("Receivable") - if is_return and self.party_type in receivable_party_types and (self.payment_type == "Pay"): + if ( + is_return + and self.party_type in receivable_party_types + and (self.payment_type == "Pay") + ): reverse_dr_or_cr = 1 elif ( - is_return and self.party_type in payable_party_types and (self.payment_type == "Receive") + is_return + and self.party_type in payable_party_types + and (self.payment_type == "Receive") ): reverse_dr_or_cr = 1