fix: PO cancel post advance payment cancel against PO

This commit is contained in:
Deepesh Garg 2022-10-08 21:25:11 +05:30
parent ce5a792e34
commit d806e32030

View File

@ -349,7 +349,7 @@ class PurchaseOrder(BuyingController):
update_linked_doc(self.doctype, self.name, self.inter_company_order_reference)
def on_cancel(self):
self.ignore_linked_doctypes = "Payment Ledger Entry"
self.ignore_linked_doctypes = ("GL Entry", "Payment Ledger Entry")
super(PurchaseOrder, self).on_cancel()
if self.is_against_so():