From 92bde71ab13f90aef0d51672f1dcbbe079da6b9a Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 26 Aug 2024 16:48:55 +0530 Subject: [PATCH] fix: Column 'valuation_rate' cannot be null (#42909) --- erpnext/stock/serial_batch_bundle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/serial_batch_bundle.py b/erpnext/stock/serial_batch_bundle.py index 71e664dd066..46724be5927 100644 --- a/erpnext/stock/serial_batch_bundle.py +++ b/erpnext/stock/serial_batch_bundle.py @@ -183,7 +183,7 @@ class SerialBatchBundle: } if self.sle.actual_qty < 0 and self.is_material_transfer(): - values_to_update["valuation_rate"] = sn_doc.avg_rate + values_to_update["valuation_rate"] = flt(sn_doc.avg_rate) if not frappe.db.get_single_value( "Stock Settings", "do_not_update_serial_batch_on_creation_of_auto_bundle"