POS-Awesome
POS-Awesome copied to clipboard
[BUG]: UOM & Serial No not populated when adding new Item for the first time
Versions
- Frappe: V14.60.0
- Erpnext: v14.54.2
- POS Awesome: v6.1.3 (develop)
Steps to reproduce
- Open POS Awesome
- Click on Item
- UOM field on right panel does not show UOM from Item, so does the Serial No dropdown doesn't show any values
- When clicking same item for 2nd time (qty becomes 2), UOM show correct value & Serial No dropdown correctly populated
I couldn't reproduce this error
if we search item in search bar with item code or barcode, UOM populated if we add item direct from item list, UOM was not populated
We are also facing the same issue. We found the following which may be helpful to debug this.
When an item is added from the left panel (without searching) an api call is made to /api/method/posawesome.posawesome.api.posapp.get_item_detail
which returns some item details. The UOMs are not among these details in the returned JSON. But when the item is clicked the second time, it calls a different api, /api/method/posawesome.posawesome.api.posapp.get_items_details
. Notice the get_items_details
and get_items_detail
. This time the api returns the relevant UOMs of the clicked item.