[Fix] Original Invoice outstanding is not updating after making Debit Note (#14821)
This commit is contained in:
parent
686284261d
commit
839320dca5
@ -334,7 +334,7 @@ class PurchaseInvoice(BuyingController):
|
|||||||
|
|
||||||
if update_outstanding == "No":
|
if update_outstanding == "No":
|
||||||
update_outstanding_amt(self.credit_to, "Supplier", self.supplier,
|
update_outstanding_amt(self.credit_to, "Supplier", self.supplier,
|
||||||
self.doctype, self.return_against if cint(self.is_return and self.return_against) else self.name)
|
self.doctype, self.return_against if cint(self.is_return) and self.return_against else self.name)
|
||||||
|
|
||||||
if repost_future_gle and cint(self.update_stock) and self.auto_accounting_for_stock:
|
if repost_future_gle and cint(self.update_stock) and self.auto_accounting_for_stock:
|
||||||
from erpnext.controllers.stock_controller import update_gl_entries_after
|
from erpnext.controllers.stock_controller import update_gl_entries_after
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user