Topic: select item not working in purchase order and sales order entry

Item selection not working in purchase order and sales order entry for items with editable item description.

when we select a item "A" having code "001" with editable description and if we want to change this item with another item by clicking Item Search Button, We now select Item "B" having code "002" after that we click Add Line Item. then item code and item description are not same as we have selected item "B".

2 (edited by bajrang8955 07/03/2021 01:27:57 pm)

Re: select item not working in purchase order and sales order entry

@kvvaradha please see this

Re: select item not working in purchase order and sales order entry

Hello dude. I saw the issue I will get you a solution after checking the code.

Subscription service based on FA
HRM CRM POS batch Themes

Re: select item not working in purchase order and sales order entry

@joe, there is an issue in the ui_view.inc, fix and update it inside the get_js_select_combo_item

here we have if condition for select option and else for the textbox. There inside textbox update, we have the issue.

stock_element.value = value;    

and change this to

stock_element[0].value = value;    

commit this on stable repo.

and @bajrang8955. its updated to work. check it. with this change.

Subscription service based on FA
HRM CRM POS batch Themes

Re: select item not working in purchase order and sales order entry

This has been committed to stable repo.
A downloaded file can be downloaded here and replaced in /includes/ui/

Joe

Post's attachments

ui_view.inc 46.7 kb, 4 downloads since 2021-07-04 

You don't have the permssions to download the attachments of this post.

Re: select item not working in purchase order and sales order entry

Hope this will fixed your issue @bajrang8955, Test it once and update us here.

Subscription service based on FA
HRM CRM POS batch Themes

Re: select item not working in purchase order and sales order entry

Thanks a lot. its working now. but after Adding Line Item we should

unset($_POST['_stock_id_edit']);

Because in new line item code and description is not displaying in correct combination. that is different.

Re: select item not working in purchase order and sales order entry

Thank you for your feedback. I have checked it from my side again. It automatically  updated. No need to unset the code stock id edit for now.  May be @joe looks this a bit deeper.

Subscription service based on FA
HRM CRM POS batch Themes