From d8dd22adafbd1cee33ab4b00841973517dc116cc 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 4d96e5446763..8d6e93fa8c50 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -2271,7 +2271,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"), },