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

Hello Dear can anyone let me know why we use l in below code what it is mean also what is meant of factor and why we use it please explain below query

sum (l.product_uom_qty / u.factor * u2.factor) as product_uom_qty FROM 
sale_order_line 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

User can select the required unit of measure(UOM) while selling or purchasing a product. While the user selects  a UOM which is different from the default UOM of that product. The above code is used to convert the selected UOM quantity to default UOM quantity. 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

This is for converting the value of quantity from the UoM specified on the Sale Order Line to the main UoM specified on the Product template.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 25
1795
0
มี.ค. 25
2930
1
พ.ย. 22
4638
0
ธ.ค. 21
3347
0
มิ.ย. 21
4349