Merge pull request #32536 from deepeshgarg007/po_cancel
fix: PO cancel post advance payment cancel against PO
This commit is contained in:
commit
0f033bf8f6
@ -349,7 +349,7 @@ class PurchaseOrder(BuyingController):
|
|||||||
update_linked_doc(self.doctype, self.name, self.inter_company_order_reference)
|
update_linked_doc(self.doctype, self.name, self.inter_company_order_reference)
|
||||||
|
|
||||||
def on_cancel(self):
|
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()
|
super(PurchaseOrder, self).on_cancel()
|
||||||
|
|
||||||
if self.is_against_so():
|
if self.is_against_so():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user