Skip to content

Commit

Permalink
fix: PO cancel post advance payment cancel against PO
Browse files Browse the repository at this point in the history
(cherry picked from commit d806e32)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Oct 9, 2022
1 parent 49cedca commit bda25c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/buying/doctype/purchase_order/purchase_order.py
Expand Up @@ -349,7 +349,7 @@ def on_submit(self):
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():
Expand Down

0 comments on commit bda25c4

Please sign in to comment.