[Zope] Dynamic Sum

Michael Fox Michael@CenturySoftware.com.au
Tue, 17 Sep 2002 11:04:03 +1000


Hi *,

I have a dtml-in which lists both quantity and cost of items in my =
table.

I am generating the total for each item row like so -

<dtml-var expr=3D"cost * qty" fmt=3D"dollars-and-cents-with-commas">

What would be the practical approach to calculating the sum of all =
totals for each item here?

Regards,
Michael Fox

Web Analyst/Programmer=20
Century Software=20
Ph:    +612 9460 1422=20
Fax:   +612 9460 3098=20
Email: michael@centurysoftware.com.au=20

This E-mail from Century Software Pty Ltd expresses the views of the =
sender and not necessarily the views of the Company. The E-mail and any =
files transmitted with it are confidential to the intended recipient at
the E-mail address to which it has been addressed. The E-mail may not be =
disclosed or used by any other than the addressee, nor may it be copied =
in any way. If you are not the intended recipient please contact the
sender as soon as possible and delete any copies of this message.
Please note that although this E-mail has been checked, we cannot accept =
any responsibility for any transmitted viruses. It is therefore your =
responsibility to virus scan attachments (if any).