Skip to Content
Menú
This question has been flagged
2 Respostes
4827 Vistes

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
Descartar
Best Answer

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de jul. 25
1422
0
de març 25
2440
1
de nov. 22
4217
0
de nov. 21
3017
0
de juny 21
4015