fix: missed refactoring code

This commit is contained in:
Mihir Kandoi
2025-10-28 13:44:35 +05:30
parent f73db0219a
commit 941e924d4d

View File

@@ -1932,9 +1932,6 @@ def get_valuation_rate(
# Get moving average rate of a specific batch number
if warehouse and serial_and_batch_bundle:
sabb = frappe.db.get_value(
"Serial and Batch Bundle", serial_and_batch_bundle, ["posting_date", "posting_time"], as_dict=True
)
batch_obj = BatchNoValuation(
sle=frappe._dict(
{
@@ -1942,7 +1939,9 @@ def get_valuation_rate(
"warehouse": warehouse,
"actual_qty": -1,
"serial_and_batch_bundle": serial_and_batch_bundle,
"posting_datetime": get_combine_datetime(sabb.posting_date, sabb.posting_time),
"posting_datetime": frappe.get_value(
"Serial and Batch Bundle", serial_and_batch_bundle, "posting_datetime"
),
}
)
)