fix: Sider
This commit is contained in:
parent
4038977e2e
commit
8c441263f8
@ -875,8 +875,6 @@ def get_valuation_rate(item_code, warehouse, voucher_type, voucher_no,
|
|||||||
def update_qty_in_future_sle(args, allow_negative_stock=None):
|
def update_qty_in_future_sle(args, allow_negative_stock=None):
|
||||||
"""Recalculate Qty after Transaction in future SLEs based on current SLE."""
|
"""Recalculate Qty after Transaction in future SLEs based on current SLE."""
|
||||||
datetime_limit_condition = ""
|
datetime_limit_condition = ""
|
||||||
last_balance = None
|
|
||||||
|
|
||||||
qty_shift = args.actual_qty
|
qty_shift = args.actual_qty
|
||||||
|
|
||||||
# find difference/shift in qty caused by stock reconciliation
|
# find difference/shift in qty caused by stock reconciliation
|
||||||
@ -937,7 +935,7 @@ def get_next_stock_reco(args):
|
|||||||
select
|
select
|
||||||
name, posting_date, posting_time, creation, voucher_no
|
name, posting_date, posting_time, creation, voucher_no
|
||||||
from
|
from
|
||||||
`tabStock Ledger Entry`
|
`tabStock Ledger Entry`
|
||||||
where
|
where
|
||||||
item_code = %(item_code)s
|
item_code = %(item_code)s
|
||||||
and warehouse = %(warehouse)s
|
and warehouse = %(warehouse)s
|
||||||
@ -954,8 +952,6 @@ def get_next_stock_reco(args):
|
|||||||
""", args, as_dict=1)
|
""", args, as_dict=1)
|
||||||
|
|
||||||
def get_datetime_limit_condition(detail):
|
def get_datetime_limit_condition(detail):
|
||||||
if not detail: return None
|
|
||||||
|
|
||||||
return f"""
|
return f"""
|
||||||
and
|
and
|
||||||
(timestamp(posting_date, posting_time) < timestamp('{detail.posting_date}', '{detail.posting_time}')
|
(timestamp(posting_date, posting_time) < timestamp('{detail.posting_date}', '{detail.posting_time}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user