1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: subtotal.coretag,v 1.7 2007-03-30 23:40:49 pajamian Exp $
10 UserTag subtotal Order name noformat
11 UserTag subtotal attrAlias cart name
12 UserTag subtotal attrAlias space discount_space
13 UserTag subtotal addAttr
14 UserTag subtotal PosNumber 2
15 UserTag subtotal Version $Revision: 1.7 $
16 UserTag subtotal Routine <<EOR
18 my($cart, $noformat, $opt) = @_;
19 return currency( subtotal($cart, $opt->{discount_space}, $opt->{nodiscount}),
20 $noformat, undef, $opt);