fix: incorrect posting time fetching incorrect qty (#29103)

(cherry picked from commit f02e6b4631)
This commit is contained in:
rohitwaghchaure
2022-01-03 14:28:34 +05:30
committed by mergify-bot
parent f90b49a1b5
commit 48f98a68b8

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,