and getting null in the priceDataSource variable
any idea what I’m doing wrong?
obviously “Raw material” is a viable DocType and the required “material” exist…
tried it,
it didn’t work.
but I managed to workaroud by leaving the alert out of the $.each loop, thus causing the final set_value call to update correctly (can’t understad why…)