Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
6338 Näkymät

I need a function that gives QOH of particular product. like def getQOH(product_product_id, stock_Location_id){

return qoh

}

Avatar
Hylkää
Paras vastaus

Hi Samba,

you can use the following method to get the stock. That methos is located into stock module and in stock.py file.

1) To get stock for a particular location : _product_get

2) To get stock for a particular location and its all child location : _product_all_get

3) To get Virtual stock for a particular location : _product_virtual_get

Avatar
Hylkää
Paras vastaus

Mr. Samba where did you put this?
 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
jouluk. 17
4640
1
maalisk. 15
3438
1
maalisk. 15
10665
0
maalisk. 15
4373
0
maalisk. 15
4877