fix: timeout error while submitting JV (#42040)

This commit is contained in:
rohitwaghchaure
2024-06-29 07:35:13 +05:30
committed by GitHub
parent 03e674e21d
commit 32bdcdb08f
7 changed files with 52 additions and 30 deletions

View File

@@ -68,8 +68,6 @@ def get_stock_value_on(
frappe.qb.from_(sle)
.select(IfNull(Sum(sle.stock_value_difference), 0))
.where((sle.posting_date <= posting_date) & (sle.is_cancelled == 0))
.orderby(CombineDatetime(sle.posting_date, sle.posting_time), order=frappe.qb.desc)
.orderby(sle.creation, order=frappe.qb.desc)
)
if warehouses: