[interchange-cvs] interchange - heins modified lib/Vend/Interpolate.pm

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Mon Jan 21 21:52:14 2002


User:      heins
Date:      2002-01-22 02:47:03 GMT
Modified:  lib/Vend Tag: STABLE_4_8-branch Interpolate.pm
Log:
 * Prevent converting exchange rates twice for shipping -- bug found
   and patch supplied by Frederic Steinfels <fredo@dvdupgrades.ch>.

Revision  Changes    Path
No                   revision



No                   revision



2.9.2.10  +5 -3      interchange/lib/Vend/Interpolate.pm


rev 2.9.2.10, prev_rev 2.9.2.9
Index: Interpolate.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.9.2.9
retrieving revision 2.9.2.10
diff -u -r2.9.2.9 -r2.9.2.10
--- Interpolate.pm	2002/01/08 21:09:04	2.9.2.9
+++ Interpolate.pm	2002/01/22 02:47:02	2.9.2.10
@@ -1,6 +1,6 @@
 # Vend::Interpolate - Interpret Interchange tags
 # 
-# $Id: Interpolate.pm,v 2.9.2.9 2002/01/08 21:09:04 mheins Exp $
+# $Id: Interpolate.pm,v 2.9.2.10 2002/01/22 02:47:02 mheins Exp $
 #
 # Copyright (C) 1996-2001 Red Hat, Inc. <interchange@redhat.com>
 #
@@ -27,7 +27,7 @@
 require Exporter;
 @ISA = qw(Exporter);
 
-$VERSION = substr(q$Revision: 2.9.2.9 $, 10);
+$VERSION = substr(q$Revision: 2.9.2.10 $, 10);
 
 @EXPORT = qw (
 
@@ -7238,7 +7238,9 @@
 			}
 		}
 		$out = Vend::Util::round_to_frac_digits($out);
-		$out = currency($out, $opt->{noformat}, $opt->{convert});
+		## Conversion would have been done above, force to 0, as
+		## found by Frederic Steinfels
+		$out = currency($out, $opt->{noformat}, 0);
 	}
 	return $out unless $opt->{hide};
 	return;