From bd75584c27b0236607b248273f3e7eeb8ca1d4ea Mon Sep 17 00:00:00 2001 From: Marc de Lima Lucio <68746600+marc-dll@users.noreply.github.com> Date: Mon, 29 May 2023 17:41:14 +0200 Subject: [PATCH] fix: retention stock entry: grab conversion factor from source (cherry picked from commit 6954f538c96c5c266d0dbc8423888722f90bc3a6) --- erpnext/stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index d82fab8749ac..efadf36199c8 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2401,7 +2401,7 @@ def move_sample_to_retention_warehouse(company, items): "basic_rate": item.get("valuation_rate"), "uom": item.get("uom"), "stock_uom": item.get("stock_uom"), - "conversion_factor": 1.0, + "conversion_factor": item.get("conversion_factor") or 1.0, "serial_no": sample_serial_nos, "batch_no": item.get("batch_no"), },