[Fix] Original Invoice outstanding is not updating after making Debit Note (#14821)

This commit is contained in:
rohitwaghchaure 2018-07-06 10:42:15 +05:30 committed by Nabin Hait
parent 686284261d
commit 839320dca5

View File

@ -334,7 +334,7 @@ class PurchaseInvoice(BuyingController):
if update_outstanding == "No":
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:
from erpnext.controllers.stock_controller import update_gl_entries_after