[support] Computed field, how to acces Foreignkey's data

Marolijo - Pol maresma marolijo at yahoo.es
Tue Jan 8 09:51:26 UTC 2008


Hello, from a computed field I wanna to a typical bill-line calculation
doing a multiplication 
price = quantity * fk_product_price
 
How can I do that? I tried wihout luck.
 
$node_field[0]['value'] = $node->field_quantitat[0]['value'] *
$node->field_fk_producte[0]['value']......;
 
 
Thank's!
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20080108/b98ab8a0/attachment.htm 


More information about the support mailing list