Merge pull request #50248 from mihir-kandoi/fix-sabb-posting-datetime

fix: missed refactoring code
This commit is contained in:
rohitwaghchaure
2025-10-28 14:31:42 +05:30
committed by GitHub

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"
),
}
)
)