[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] MV4.04 - Patch for ignored adder value for UPS in shipping.asc
****** message to minivend-users from Randy Moore <ramoore@axion-it.net> ******
Hi all,
While playing with shipping calculations today, I noticed that if I used
the line-based style of defining shipping parameters, the "adder" value for
UPS calculations would be ignored. If I used the freeform method, the
adder values worked properly.
I've included a patch which seems to fix the problem for me.
--- Interpolate.orig.pm Sat Jun 17 17:54:40 2000
+++ Interpolate.pm Sat Jun 17 17:59:28 2000
@@ -4699,7 +4699,9 @@
if(! $type) {
$what = interpolate_html($what);
($type, $geo, $adder, $mod, $sub) = split
/\s+/, $what, 5;
- $o->{adder} = $adder if $mod =~ /round/;
+# This seems suspicious
+# $o->{adder} = $adder if $mod =~ /round/;
+ $o->{adder} = $adder if $adder;
$o->{round} = 1 if $mod =~ /round/;
$o->{at_least} = $1 if $mod =~ /min([\d.]+)/;
Randy Moore
Axion Information Technologies, Inc.
email ramoore@axion-it.net
phone 301-408-1200
fax 301-445-3947
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list