mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 02:01:21 +00:00
chore: linters/semgrep check
This commit is contained in:
@@ -1746,7 +1746,7 @@ def get_valuation_rate(
|
|||||||
return batch_obj.get_incoming_rate()
|
return batch_obj.get_incoming_rate()
|
||||||
|
|
||||||
# Get valuation rate from last sle for the same item and warehouse
|
# 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
|
"""select valuation_rate
|
||||||
from `tabStock Ledger Entry` force index (item_warehouse)
|
from `tabStock Ledger Entry` force index (item_warehouse)
|
||||||
where
|
where
|
||||||
@@ -1826,7 +1826,7 @@ def update_qty_in_future_sle(args, allow_negative_stock=False):
|
|||||||
detail = next_stock_reco_detail[0]
|
detail = next_stock_reco_detail[0]
|
||||||
datetime_limit_condition = get_datetime_limit_condition(detail)
|
datetime_limit_condition = get_datetime_limit_condition(detail)
|
||||||
|
|
||||||
frappe.db.sql(
|
frappe.db.sql( # nosemgrep
|
||||||
f"""
|
f"""
|
||||||
update `tabStock Ledger Entry`
|
update `tabStock Ledger Entry`
|
||||||
set qty_after_transaction = qty_after_transaction + {qty_shift}
|
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):
|
def get_future_sle_with_negative_qty(args):
|
||||||
return frappe.db.sql(
|
return frappe.db.sql( # nosemgrep
|
||||||
"""
|
"""
|
||||||
select
|
select
|
||||||
qty_after_transaction, posting_date, posting_time,
|
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):
|
def get_future_sle_with_negative_batch_qty(args):
|
||||||
return frappe.db.sql(
|
return frappe.db.sql( # nosemgrep
|
||||||
"""
|
"""
|
||||||
with batch_ledger as (
|
with batch_ledger as (
|
||||||
select
|
select
|
||||||
|
|||||||
Reference in New Issue
Block a user