Merge pull request #20087 from nextchamp-saqib/pay-reco-fix

fix: undefined dr_or_cr_notes in case of party type Employee
This commit is contained in:
Deepesh Garg
2019-12-27 08:13:09 +05:30
committed by GitHub

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)