[ic] Issue with [total_cost]

Marty interchange-users@icdevgroup.org
Thu Nov 21 12:53:01 2002


On Thu, 2002-11-21 at 09:01, darren kemp 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.
> 
> If anyone has seen anything like this before and has a possible solution I'd
> love to hear it.
> Thanks for your time.
> 
> -Darren Kemp
> Lemur Networks

The [total-cost] tag will automatically format the number for the local
currency.  If you want the raw number you will need to apply the
noformat=1 argument.  ie. [total-cost noformat=1]

-- 
Marty <marty@sediva.com>