[ic] Issue with [total_cost]

Stefan Hornburg interchange-users@icdevgroup.org
Thu Nov 21 12:30:01 2002


On Thu, 21 Nov 2002 12:01:32 -0500
"darren kemp" <dkemp@lemurnetworks.net> wrote:

> We have two seperate "gui's" attaching to our interchange deployment that
> both
> need different look/feels, in order to accomodate this we have modified
> special_pages/reciept, to be a bounce to
> two seperate pages (pages/reciepta pages/recieptb). Since total_cost is not
> available here, a variable is defined
> in special_pages/reciept ($Values{totalcost} = [total_cost]) and called in
> these new reciept pages.
> 
> The issue is, I am only getting the cents portion of total_cost in
> totalcost. This has been a real head scratcher.
> ie. if [total_cost] is $59.95, in my new reciepts, when i call
> [currency][value totalcost][/currency] i get back $0.95.

Standard procedure is to take the numeric value of [total_cost] with
[total_cost noformat=1].
If I were you, I would put this value in the scratch namespace to avoid
to get a value feeded from the user.

Bye
       Racke