From 8c86def018fb733e2e155db09e5e00024cb1cb33 Mon Sep 17 00:00:00 2001 From: Diptanil Saha Date: Wed, 21 May 2025 14:37:22 +0530 Subject: [PATCH] fix: pos invoice status not updating on cancel (#47556) --- erpnext/accounts/doctype/pos_invoice/pos_invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py index aa4eef46735..cda033a7cff 100644 --- a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py +++ b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py @@ -276,6 +276,8 @@ class POSInvoice(SalesInvoice): against_psi_doc.delete_loyalty_point_entry() against_psi_doc.make_loyalty_point_entry() + self.db_set("status", "Cancelled") + if self.coupon_code: from erpnext.accounts.doctype.pricing_rule.utils import update_coupon_code_count