Stock Available

Good Day

Any One could help me to explain how i can get available stock to show in custom doctype Field when i select product code on a drop down?

see: Pick Note Dev Help Needed

Thank You

Albertus Geyser

I believe it will require some client side and server side scripting as well. Will be best if you can develop this feature in the develop branch and send a pull request.

For this specific query, you can check how Item’s actual stock is fetched in the Sales Order Item table and implement the same in the Pick List on the same lines.

Good Day

Thank You for reply, but could you give steps to send a pull request?

I tried a few like:

With no success.

If possible i can give access to my pc with Team Viewer.

Thank You
Albertus Geyser

You could use the total_projected_qty field from the Item doctype by adding a field to fetch the value via item_code.total_projected_qty In the options panel of it.

Good Day

Thank you for quick response.

Herewith error i get, what do i do wrong?

https://screenshots.firefox.com/YidXSGwiUoN4blvv/192.168.10.200

Thank You
Albertus Geyser

@Albertus I think that you can access this in js or in py. Just get the actual_qty in Bin. I guess that available qty is the projected_qty depends your business or your use case.