Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4959 Vizualizări

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 


Imagine profil
Abandonează
Cel mai bun răspuns

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. 

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 25
1602
0
mar. 25
2605
1
nov. 22
4384
0
nov. 21
3117
0
iun. 21
4154