diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 76fd74d9234..7c0dd464e61 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -1827,7 +1827,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: