mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-18 06:22:12 +00:00
fix(stock): Grab posting date/time from SABB (#43493)
(cherry picked from commit ade121dac6)
Co-authored-by: Corentin Forler <10946971+cogk@users.noreply.github.com>
This commit is contained in:
@@ -1740,6 +1740,9 @@ 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(
|
||||||
{
|
{
|
||||||
@@ -1747,6 +1750,8 @@ 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_date": sabb.posting_date,
|
||||||
|
"posting_time": sabb.posting_time,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user