mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: missed refactoring code
This commit is contained in:
@@ -1932,9 +1932,6 @@ def get_valuation_rate(
|
|||||||
|
|
||||||
# Get moving average rate of a specific batch number
|
# Get moving average rate of a specific batch number
|
||||||
if warehouse and serial_and_batch_bundle:
|
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(
|
batch_obj = BatchNoValuation(
|
||||||
sle=frappe._dict(
|
sle=frappe._dict(
|
||||||
{
|
{
|
||||||
@@ -1942,7 +1939,9 @@ def get_valuation_rate(
|
|||||||
"warehouse": warehouse,
|
"warehouse": warehouse,
|
||||||
"actual_qty": -1,
|
"actual_qty": -1,
|
||||||
"serial_and_batch_bundle": serial_and_batch_bundle,
|
"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"
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user