fix: undefined dr_or_cr_notes in case of party type Employee

This commit is contained in:
thefalconx33 2019-12-26 13:15:52 +05:30
parent a02bb5170b
commit 81d0861506

View File

@ -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)