chore: linters/semgrep check

This commit is contained in:
Khushi Rawat
2024-08-30 00:40:01 +05:30
parent 3baffffd1b
commit 272f42eaf2

View File

@@ -1746,7 +1746,7 @@ def get_valuation_rate(
return batch_obj.get_incoming_rate()
# Get valuation rate from last sle for the same item and warehouse
if last_valuation_rate := frappe.db.sql(
if last_valuation_rate := frappe.db.sql( # nosemgrep
"""select valuation_rate
from `tabStock Ledger Entry` force index (item_warehouse)
where
@@ -1826,7 +1826,7 @@ def update_qty_in_future_sle(args, allow_negative_stock=False):
detail = next_stock_reco_detail[0]
datetime_limit_condition = get_datetime_limit_condition(detail)
frappe.db.sql(
frappe.db.sql( # nosemgrep
f"""
update `tabStock Ledger Entry`
set qty_after_transaction = qty_after_transaction + {qty_shift}
@@ -1993,7 +1993,7 @@ def is_negative_with_precision(neg_sle, is_batch=False):
def get_future_sle_with_negative_qty(args):
return frappe.db.sql(
return frappe.db.sql( # nosemgrep
"""
select
qty_after_transaction, posting_date, posting_time,
@@ -2015,7 +2015,7 @@ def get_future_sle_with_negative_qty(args):
def get_future_sle_with_negative_batch_qty(args):
return frappe.db.sql(
return frappe.db.sql( # nosemgrep
"""
with batch_ledger as (
select