Merge pull request #29150 from frappe/mergify/bp/version-13-pre-release/pr-29103
fix: incorrect posting time fetching incorrect qty (backport #29103)
This commit is contained in:
@@ -87,8 +87,8 @@ def get_stock_balance(item_code, warehouse, posting_date=None, posting_time=None
|
|||||||
|
|
||||||
from erpnext.stock.stock_ledger import get_previous_sle
|
from erpnext.stock.stock_ledger import get_previous_sle
|
||||||
|
|
||||||
if not posting_date: posting_date = nowdate()
|
if posting_date is None: posting_date = nowdate()
|
||||||
if not posting_time: posting_time = nowtime()
|
if posting_time is None: posting_time = nowtime()
|
||||||
|
|
||||||
args = {
|
args = {
|
||||||
"item_code": item_code,
|
"item_code": item_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user