fix: PO cancel post advance payment cancel against PO

(cherry picked from commit d806e32030)

# Conflicts:
#	erpnext/buying/doctype/purchase_order/purchase_order.py
This commit is contained in:
Deepesh Garg
2022-10-08 21:25:11 +05:30
committed by Mergify
parent 997990c69f
commit 41599cf29f

View File

@@ -323,6 +323,10 @@ class PurchaseOrder(BuyingController):
update_linked_doc(self.doctype, self.name, self.inter_company_order_reference)
def on_cancel(self):
<<<<<<< HEAD
=======
self.ignore_linked_doctypes = ("GL Entry", "Payment Ledger Entry")
>>>>>>> d806e32030 (fix: PO cancel post advance payment cancel against PO)
super(PurchaseOrder, self).on_cancel()
if self.is_against_so():