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

Hello, can someone help me


I want to do as the amount:

- calculate the volume per item

- and the total volume.

I created the fields in the model but I cannot find the place where I must put the calculation formula.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thank you for your reply.

I created the field x_volume_subtotal in Purchase Order Line Model and I tried to apply the following calculation formula to it: x_volume_subtotal = (volume_of_l'article * quantity) / packaging.

for record in self: 

    record['x_volume_subtotal'] = (['product_id'].value.volume *record['product_qty'])/['product_id'].packaging.qty



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

You can add new fields in purchase order line where you can store the volume per item (if not defined on product). and add new field for purchase order where you can calculate the volume based on your formula.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
importing Purchase Order shown as a RFQ แก้ไขแล้ว
2
พ.ค. 25
2230
3
ธ.ค. 24
6467
1
ก.ค. 24
3160
Purchase Product Description Incorrect แก้ไขแล้ว
1
มิ.ย. 24
2192
2
มิ.ย. 24
3065