erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

Asset Repair >> Unable to auto-fetch serial stock quantity. Also not inserting serials properly from pop-up manually

Open nidhipurohit11 opened this issue 2 years ago • 0 comments

Information about bug

Ref Issue - https://github.com/frappe/erpnext/pull/28349

Issue 1 -

  • On the Asset Repair page >> Serial no pop-up >> Select a warehouse that contains serial nos.
  • Clicking "Auto fetch" >> its not fetching the required no of serials and throwing a console error.

Required - It should auto-fetch the correct number of consumed quantities mentioned.

Issue 2 -

  • Since qty not getting auto-fetched, try inserting serials manually from the warehouse.
  • Selected serials get filled in the "Selected Serial Number" field.
  • Click "Insert" after serial no selection, they are not getting fetched in the serial no box instantly. User have to click outside the pop-up to exit it, and on opening it again its showing serials, instead, serials should get fetched instantly.

https://user-images.githubusercontent.com/82337328/181719346-ca0fab4e-2b9c-483e-be01-9525f25649c3.mov

Module

assets

Version

ERPNext: v14.0.0-dev (HEAD) Frappe Framework: v14.0.0-dev (HEAD)

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

serial_no_batch_selector.js:585 Uncaught TypeError: Cannot read properties of undefined (reading 'filter')
    at get_rows_with_same_item_code (serial_no_batch_selector.js:585:15)
    at get_selected_serial_nos (serial_no_batch_selector.js:596:30)
    at Object.click (serial_no_batch_selector.js:97:40)
    at frappe.ui.form.ControlButton.onclick (button.js:32:12)
    at HTMLButtonElement.<anonymous> (button.js:15:8)
    at HTMLButtonElement.dispatch (jquery.js:5430:27)
    at c1.handle (jquery.js:5234:28)

nidhipurohit11 avatar Jul 29 '22 08:07 nidhipurohit11