[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] ups_cache table IC 5.4




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

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.