refactor: skip popup for POS invoices

This commit is contained in:
ruthra kumar 2024-02-23 05:45:04 +05:30
parent 4288713abe
commit 3634c4c284

View File

@ -216,7 +216,8 @@ class AccountsController(TransactionBase):
)
)
if self.get("is_return") and self.get("return_against"):
if self.get("is_return") and self.get("return_against") and not self.get("is_pos"):
# if self.get("is_return") and self.get("return_against"):
document_type = "Credit Note" if self.doctype == "Sales Invoice" else "Debit Note"
frappe.msgprint(
_(