跳至内容
菜单
此问题已终结
2 回复
1737 查看

Hi,


I have a field that I have created in the quote page that is supposed to do a calculation by multiplying sale line item quantity by a number that is stored against the product in the product profile.  The filter mechanism is based on the product category.


Example:

Total Weight of Order (New Calculation Field) = Weight (of the specific item (i.e. XYZ CHAIR) in the sales order line) * Quantity (of the specific item (i.e. XYZ CHAIR) in the sales order line)


Thanks

形象
丢弃
最佳答案

Hi,

By defining a computed field at the order level, you can easily achieve this. Inside the compute function you can add the logic to compute the value from the lines.

For example, see the amount_total field which computes the sub total from the lines and display the total at order level.

Similarly in your case, define a computed field from the ui or from the code and just add the logic.


Thanks

形象
丢弃
最佳答案

Hi did you figure this out? I have the same question for calculation of surface area using the dimensions Length and Width entered on the quotation.

形象
丢弃