Attributes of linked entries: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Line 46: Line 46:
// This function multiplies the linked_field_name field of each associated entry by the corresponding attribute_name attribute.  
// This function multiplies the linked_field_name field of each associated entry by the corresponding attribute_name attribute.  
// The set of numbers obtained after multiplication is summed.  
// The set of numbers obtained after multiplication is summed.  
* $sum('link_field_name.linked_field_name', 'link_field_name:attribute_name', ' @ mul')
* $sum('link_field_name.linked_field_name', 'link_field_name:attribute_name', ' @mul')


For example, to calculate the total amount of an order, you can use the formula:
For example, to calculate the total amount of an order, you can use the formula: