fix: undefined dr_or_cr_notes in case of party type Employee
This commit is contained in:
parent
a02bb5170b
commit
81d0861506
@ -23,6 +23,8 @@ class PaymentReconciliation(Document):
|
||||
|
||||
if self.party_type in ["Customer", "Supplier"]:
|
||||
dr_or_cr_notes = self.get_dr_or_cr_notes()
|
||||
else:
|
||||
dr_or_cr_notes = []
|
||||
|
||||
self.add_payment_entries(payment_entries + journal_entries + dr_or_cr_notes)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user