From 035394ae6a6c475ff57d13c04b3fa5c2f5143330 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 2 May 2025 18:34:47 +0530 Subject: [PATCH] fix: not able to submit the stock entry (#47383) --- erpnext/controllers/stock_controller.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 80f860b4553..f079274528c 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -1824,7 +1824,11 @@ def make_bundle_for_material_transfer(**kwargs): bundle_doc.is_cancelled = 0 qty = 0 - if len(bundle_doc.entries) == 1 and kwargs.qty < bundle_doc.total_qty and not bundle_doc.has_serial_no: + if ( + len(bundle_doc.entries) == 1 + and flt(kwargs.qty) < flt(bundle_doc.total_qty) + and not bundle_doc.has_serial_no + ): qty = kwargs.qty for row in bundle_doc.entries: