[ic] ups_cache table IC 5.4

Steve Graham icdev at mrlock.com
Mon Jan 23 16:33:46 EST 2006


>
>Is there a setting for rounding the weights? This cache table is a 
>great added feature by the way.


I'm not sure if this is the correct solution for the QueryUPS.pm module.

Add the following line with + seems to makes the correction in the table.

sub calculate {
         my ($mode, $weight, $row, $opt, $tagopt, $extra) = @_;

+ $weight = int($weight+.5);

         $opt->{service}         ||= $opt->{table};


Please advise.
Thanks,
Steve



More information about the interchange-users mailing list