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:
rohitwaghchaure
2022-01-05 10:36:37 +05:30
committed by GitHub

View File

@@ -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
if not posting_date: posting_date = nowdate()
if not posting_time: posting_time = nowtime()
if posting_date is None: posting_date = nowdate()
if posting_time is None: posting_time = nowtime()
args = {
"item_code": item_code,