It looks to me like after the type selection is changed, and the value box is re-created, then the onchange handler is connected to the value box. But it will only try to update the value if the value box is changed after that point. And since there is only one UPC is most cases, it isn't possible to change to another one, and then back to the UPC you want.
Maybe calling updateOrderIdent() at the end would register the current selection as the official order identifier. I'll try that out.
It looks to me like after the type selection is changed, and the value box is re-created, then the onchange handler is connected to the value box. But it will only try to update the value if the value box is changed after that point. And since there is only one UPC is most cases, it isn't possible to change to another one, and then back to the UPC you want.
Maybe calling updateOrderIdent() at the end would register the current selection as the official order identifier. I'll try that out.
https:/ /git.evergreen- ils.org/ ?p=Evergreen. git;a=blob; f=Open- ILS/web/ js/ui/default/ acq/common/ li_table. js;hb=7fb2ccc55 1797063aa2cb220 a3ad33a2d9f405f b#l1117