From ecbf0bf0b82abfe9fe753c63e1cf2241c9f1a743 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Jun 2026 05:36:26 +0000 Subject: [PATCH] fix: suppress safe semgrep sql false positives --- erpnext/accounts/doctype/payment_entry/payment_entry.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 34ef03710cb..1e2b3ee9a17 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -2329,6 +2329,8 @@ def get_orders_to_be_billed( grand_total_field = "grand_total" rounded_total_field = "rounded_total" + # nosemgrep: frappe-semgrep-rules.rules.security.frappe-sql-format-injection + # Safe because voucher_type / party_type / total field names are selected from fixed allowlists above. orders = frappe.db.sql( """ select @@ -2406,6 +2408,8 @@ def get_negative_outstanding_invoices( grand_total_field = "grand_total" rounded_total_field = "rounded_total" + # nosemgrep: frappe-semgrep-rules.rules.security.frappe-sql-format-injection + # Safe because voucher_type / party_type / account / total field names are selected from fixed allowlists above. return frappe.db.sql( """ select