fix: Sider
diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py
index 7425473..4e9c768 100644
--- a/erpnext/stock/stock_ledger.py
+++ b/erpnext/stock/stock_ledger.py
@@ -875,8 +875,6 @@
def update_qty_in_future_sle(args, allow_negative_stock=None):
"""Recalculate Qty after Transaction in future SLEs based on current SLE."""
datetime_limit_condition = ""
- last_balance = None
-
qty_shift = args.actual_qty
# find difference/shift in qty caused by stock reconciliation
@@ -937,7 +935,7 @@
select
name, posting_date, posting_time, creation, voucher_no
from
- `tabStock Ledger Entry`
+ `tabStock Ledger Entry`
where
item_code = %(item_code)s
and warehouse = %(warehouse)s
@@ -954,8 +952,6 @@
""", args, as_dict=1)
def get_datetime_limit_condition(detail):
- if not detail: return None
-
return f"""
and
(timestamp(posting_date, posting_time) < timestamp('{detail.posting_date}', '{detail.posting_time}')