[Bug]Wrong Qty fetched from Pick List to Delivery Note

When you create a Delivery Note from Pick List Qty fetched in the child table is Stock Qty where as UOM fetched is UOM (not Stock UOM).
This causes a problem when you have multiple UOMs

Steps to reproduce

  1. Create an Item with Multiple UOMs and Has Batch No
  2. Create a Sales Order (and Submit it)
  3. Create Pick List from Sales Order and Submit it (ERPNext will fetch Qty based on available batches)
  4. Create Delivery Note from Sales Order

    Here the Qty fetched is Stock Qty (should be Qty) and UOM fetched is UOM (which is correct)

Github issue for the bug Error in Qty fetched in Delivery Note from Pick List (Multiple UOM) · Issue #24970 · frappe/erpnext · GitHub