Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Can someone please help me with an example of using the computed field for calculating the total of prices in invoice line items in an invoice node content type? The invoice line items are created with field collection.
Comments
Comment #1
gusantor CreditAttribution: gusantor commentedHello
did you have any advance with this ?
I'm facing the same issue now
thanks in advance
Comment #2
gusantor CreditAttribution: gusantor commentedjust to say I found this https://drupal.org/node/1208064 which solve my doubt
but, was necesary for me to change it, just as it's stated there
from this
$sum += $collection->YOUR_FC_FIELD->['value'];
to this
$sum += $collection->YOUR_FC_FIELD->value();
thkns