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

This commit is contained in:
rohitwaghchaure 2022-01-03 14:28:34 +05:30 committed by GitHub
parent d0f5beeb34
commit f02e6b4631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,8 +86,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,