refactor: skip popup for POS invoices

(cherry picked from commit 3634c4c284061ecd2fe5576467238532f748b07a)
This commit is contained in:
ruthra kumar 2024-02-23 05:45:04 +05:30 committed by Mergify
parent 2c8ba892ac
commit b40baf5e63

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(
_(