Replies: 2 comments
-
|
@AmitEMV how do you suggest that the actual initial data is determined, via the calling function? Overall this makes sense, happy for you to submit a working PR and we can discuss further there |
Beta Was this translation helpful? Give feedback.
-
|
The current implementation has the advantage that the user is forced to do an active selection if there are more than one stockitem. It's not clear how you intend to implement the pre-selection logic but I belevie there are many use cases to handle. If the pre-selection logic is not very flexible and configurable I would appreciate at least a setting to keep the currrent functionality. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
In Allocate Stock modal today, the default selection of an item doesn't happen unless it's the only element in the dropdown. This specific section of code in
SalesOrderForms.tsxcurrently has -A change here can allow the items to be pre-selected in any specific way we want it. We can pass in the items which are oldest, newest or any other business rules that might make sense. The resulting code would be -
And we would do this to show this modal -
where
initDatahas this shapeWould this change be something that can be accepted here or any suggestions if not?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions