Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
6371 มุมมอง

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?
 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ธ.ค. 17
4674
spend a products to an internal location แก้ไขแล้ว
1
มี.ค. 15
3475
1
มี.ค. 15
10694
0
มี.ค. 15
4394
0
มี.ค. 15
4906