تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
6320 أدوات العرض

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

return qoh

}

الصورة الرمزية
إهمال
أفضل إجابة

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

الصورة الرمزية
إهمال
أفضل إجابة

Mr. Samba where did you put this?
 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
ديسمبر 17
4634
1
مارس 15
3428
1
مارس 15
10655
0
مارس 15
4352
0
مارس 15
4870