--- Gert van der Spoel <suppressed> wrote:
>
> [filter op=pound2gbp interpolate=1][total-cost][/filter]
>
Having done some more research, I came to this syntax as well which
works! So for the benefit of others the full solution (for rpm based
installations)is:
Save the following filter as:
/usr/lib/interchange/code/Filter/pound2gbp.filter
CodeDef pound2gbp Filter
CodeDef pound2gbp Routine <<EOR
sub {
my $val = shift;
$val =~ s/£\s*/GBP /g;
return $val;
}
EOR
Then use the following syntax in mail_receipt:
For items: [item-filter pound2gbp][item-price][/item-filter]
For totals: [filter op=pound2gbp interpolate=1][salestax][/filter]
Thanks to everyone for their help
Mark
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.