mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: cancelling of consolidated sales invoice that doesn't have closing entry
(cherry picked from commit 0ebd32dc63)
This commit is contained in:
committed by
mergify-bot
parent
02cf4e9f25
commit
41b7c5f92d
@@ -294,7 +294,7 @@ class SalesInvoice(SellingController):
|
|||||||
filters={ invoice_or_credit_note: self.name },
|
filters={ invoice_or_credit_note: self.name },
|
||||||
pluck="pos_closing_entry"
|
pluck="pos_closing_entry"
|
||||||
)
|
)
|
||||||
if pos_closing_entry:
|
if pos_closing_entry and pos_closing_entry[0]:
|
||||||
msg = _("To cancel a {} you need to cancel the POS Closing Entry {}.").format(
|
msg = _("To cancel a {} you need to cancel the POS Closing Entry {}.").format(
|
||||||
frappe.bold("Consolidated Sales Invoice"),
|
frappe.bold("Consolidated Sales Invoice"),
|
||||||
get_link_to_form("POS Closing Entry", pos_closing_entry[0])
|
get_link_to_form("POS Closing Entry", pos_closing_entry[0])
|
||||||
|
|||||||
Reference in New Issue
Block a user