Well, sales team generate quotes to the customer and sometimes customer sends one purchase order which includes multiple quotes. When sales team is adding new purchase order in the system they need to select which quote is behind that PO. If there is only one quote then total PO value will match one quote, but if there are multiple quotes then PO value can be divided between them.
That’s why I need multiple selection and inputbox where user insert parts of total amount. This part of development is the most complicated because I have many to many relation and from user perspective it would be easiest to click once at webix multiselect, select which quotes are connected, insert amount (or if nothing is inserted total amount will be divided equally) and save.
I have solved it in this snippet with window popup and onitemclick event: http://webix.com/snippet/b62f8bc3
Of course, it needs extra coding to prevent window popup when user deselects item and some input check because in my case it has to be nummeric.
PS: Check console to track changes