[interchange-cvs] interchange - heins modified
lib/Vend/Interpolate.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Tue Oct 30 11:27:44 EST 2007
User: heins
Date: 2007-10-30 16:27:43 GMT
Modified: lib/Vend Interpolate.pm
Log:
* Upon reconsideration, I have made negative tax amounts excluded upon
use of a pragma. It seems to me that if you want to prevent negative
tax, you should prevent negative amounts.
Revision Changes Path
2.288 +4 -4 interchange/lib/Vend/Interpolate.pm
rev 2.288, prev_rev 2.287
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.287
retrieving revision 2.288
diff -u -r2.287 -r2.288
--- Interpolate.pm 30 Oct 2007 16:23:32 -0000 2.287
+++ Interpolate.pm 30 Oct 2007 16:27:43 -0000 2.288
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.287 2007/10/30 16:23:32 mheins Exp $
+# $Id: Interpolate.pm,v 2.288 2007/10/30 16:27:43 mheins Exp $
#
# Copyright (C) 2002-2007 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.287 $, 10);
+$VERSION = substr(q$Revision: 2.288 $, 10);
@EXPORT = qw (
@@ -5612,7 +5612,7 @@
if(defined $cost) {
$Vend::Items = $save if $save;
switch_discount_space($oldspace) if defined $oldspace;
- if($cost < 0 and ! $::Pragma->{allow_negative_tax}) {
+ if($cost < 0 and $::Pragma->{no_negative_tax}) {
$cost = 0;
}
return Vend::Util::round_to_frac_digits($cost);
@@ -5669,7 +5669,7 @@
$Vend::Items = $save if defined $save;
- if($r < 0 and ! $::Pragma->{allow_negative_tax}) {
+ if($r < 0 and ! $::Pragma->{no_negative_tax}) {
$r = 0;
}
More information about the interchange-cvs
mailing list