refactor: remove unnecssary vars
also remove misleading docstring
diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py
index 46c8588..60f5e34 100644
--- a/erpnext/stock/doctype/pick_list/pick_list.py
+++ b/erpnext/stock/doctype/pick_list/pick_list.py
@@ -224,8 +224,6 @@
item.idx = idx
def update_bundle_picked_qty(self):
- """Ensure that picked quantity is sufficient for fulfilling a whole number of."""
-
product_bundles = self._get_product_bundles()
product_bundle_qty_map = self._get_product_bundle_qty_map(product_bundles.values())
@@ -246,10 +244,11 @@
for item in self.locations:
if not item.product_bundle_item:
continue
- bundle_item_code = frappe.db.get_value(
- "Sales Order Item", item.product_bundle_item, "item_code"
+ product_bundles[item.product_bundle_item] = frappe.db.get_value(
+ "Sales Order Item",
+ item.product_bundle_item,
+ "item_code",
)
- product_bundles[item.product_bundle_item] = bundle_item_code
return product_bundles
def _get_product_bundle_qty_map(self, bundles: List[str]) -> Dict[str, Dict[str, float]]: