[support] Advice on structure

Wipe_Out wipe_out at users.sourceforge.net
Tue Jan 21 12:45:03 UTC 2014


Hi All,

Perhaps someone has a good idea on the best way to structure this
functionality..

I have an established site that takes bookings for activities.. The content
type has a date/time field, a reference field to the customer and various
other administrative fields including a reference to the price list used
for that "booking"..

The activities can include things like lunch or other options all listed on
the price list..

So we now want functionality that will a) show the costing for the activity
(time based per hour) and b) the costs for optional extras along with c)
the total cost..

I have attempted to use plain decimal fields for each of the costs and then
populate the values using Rules but the logic is proving too complex for
rules.. I suppose I could use PHP code in the rules to handle the logic..

The second option I have thought of is to use Computed Fields and some PHP
code to calculate the individual values and then perhaps rules to total
them up after the node is saved..

Is there any other way to do it that doesn't require expert coding skills
since I am a builder rather than a developer??

Thanks for any thoughts..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20140121/e763faf6/attachment.html 


More information about the support mailing list