تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
5001 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يوليو 25
1632
0
مارس 25
2685
1
نوفمبر 22
4476
0
نوفمبر 21
3182
0
يونيو 21
4194