ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

ERPnext fetch items with quantity

hi guys, i need to fecth all the items with the current quantity, where can i find the proper documentation of de server side API? o r u can provide some nippet? thanks in advantage

See “Stock Balance” report, then use the “Export” URL to rengerate it!

You will have to login / authenticate yourself first though.

See https://github.com/frappe/frappe-client

i didn’t explain myself well, i wanted to fetch this data via js
im using
method: 'erpnext.stock.doctype.stock_reconciliation.stock_reconciliation.get_items'
and then call
method: "erpnext.stock.get_item_details.get_available_qty" for each item

i dont know if this is the proper way

but i also want to update de quantity js and python, so im thinking to create a Stock Reconciliation Doc and then add the ditails or there is another way just calling the server methods?

thanks in advantage

@yohendry_hurtado share your full script.

this is the js code
http://pastebin.com/m9bkC0NP
this is the python
http://pastebin.com/T1zGUCaJ

im just traying to make the funcitonality of stock reconciliation, but in a exel like table by requierements
http://imgur.com/utAC20b

This might oot from the op or outdated alr but this helped me out:

erpnext.stock.doctype.stock_reconciliation.stock_reconciliation.get_items
This will returns all your items with actual qty to date, but for now with no pagination nor filters added…

Thank you…