refactor: skip popup for POS invoices

(cherry picked from commit 3634c4c284)
This commit is contained in:
ruthra kumar
2024-02-23 05:45:04 +05:30
committed by Mergify
parent a9791c85c7
commit 9e9486d5ab

View File

@@ -201,7 +201,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(
_(