SUM the values within an ARRAY

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
dnaisbi
Posts: 1
Joined: Wed Jun 26, 2019 7:12 pm

SUM the values within an ARRAY

Post by dnaisbi » Thu Jul 11, 2019 5:22 pm

Hello,
The subject really says it all, I need to learn how to sum the values in an array. For example the Array
sum([r]
[price_tot_p]
[/r]
will list the price of each reservation, but I need to know how to add them together.

The info here has been very helpful, but adding information on how to do equations within Arrays would be great:
http://www.hoteldruid.com/wiki/doku.php?id=document&rev=1523619495

I will be purchasing the hosting for multiple motels if I can get everything running well, I just want to make sure it will work well before the purchase.

It would also be VERY helpful if there was a place where everyone could post documents that they have made so others could use them if needed and everyone could also look at the documents to see how the different formulas were created.

Post Reply