Subject: | Measurement system hardoced (LBS) on method _build_services Shipment::UPS 0.01112650 |
Date: | Wed, 26 Oct 2011 13:41:43 +0400 |
To: | bug-Shipment [...] rt.cpan.org |
From: | Pavel Vlasov <paul.vlasov [...] gmail.com> |
Good morning!
When I try to get services between two cities in Europe (ex. Berlin and
Zurich).
36 my $shipment = Shipment::UPS->new( ....);
51 foreach my $service ( $shipment->all_services ) {
52 print $service->id . " (" . $service->name . " | ".$service->cost .
")\n";
53 }
I had error "This measurement system is not valid for the selected country".
I try to investigate this error and found that Shipment/UPS.pm consist on
method "_build_services" line 221, hardoced Code => 'LBS'.
So for European country it should be 'KGS'.
Could you may to check it?
My environment:
Module: Shipment::UPS 0.01112650
Perl version: This is perl, v5.10.0 built for i386-linux-thread-multi
OS: Linux 2.6.18-028stab091.2 #1 SMP Fri Jun 3 00:02:40 MSD 2011 i686 i686
i386 GNU/Linux
Thanks you.
--
Best regards, Pavel Vlasov
Please consider the environment before printing this email.