İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
5138 Görünümler

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 


Avatar
Vazgeç
En İyi Yanıt

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. 

Avatar
Vazgeç
En İyi Yanıt

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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 25
1763
0
Mar 25
2882
1
Kas 22
4601
0
Ara 21
3315
0
Haz 21
4320