mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
fix: Pass company
This commit is contained in:
@@ -170,7 +170,7 @@ class PaymentReconciliation(Document):
|
|||||||
reconcile_against_document(lst)
|
reconcile_against_document(lst)
|
||||||
|
|
||||||
if dr_or_cr_notes:
|
if dr_or_cr_notes:
|
||||||
reconcile_dr_cr_note(dr_or_cr_notes, self.receivable_payable_account)
|
reconcile_dr_cr_note(dr_or_cr_notes, self.company)
|
||||||
|
|
||||||
msgprint(_("Successfully Reconciled"))
|
msgprint(_("Successfully Reconciled"))
|
||||||
self.get_unreconciled_entries()
|
self.get_unreconciled_entries()
|
||||||
@@ -261,8 +261,7 @@ class PaymentReconciliation(Document):
|
|||||||
|
|
||||||
return cond
|
return cond
|
||||||
|
|
||||||
def reconcile_dr_cr_note(dr_cr_notes, receivable_payable_account):
|
def reconcile_dr_cr_note(dr_cr_notes, company):
|
||||||
company = frappe.db.get_value('Account', receivable_payable_account, 'company')
|
|
||||||
for d in dr_cr_notes:
|
for d in dr_cr_notes:
|
||||||
voucher_type = ('Credit Note'
|
voucher_type = ('Credit Note'
|
||||||
if d.voucher_type == 'Sales Invoice' else 'Debit Note')
|
if d.voucher_type == 'Sales Invoice' else 'Debit Note')
|
||||||
|
|||||||
Reference in New Issue
Block a user