Clip lowside weight at 0.1 lbs. Otherwise UPS will gripe at you.

This commit is contained in:
Colin Kuskie 2009-08-10 13:33:40 -07:00
parent 8bcacc8316
commit fe63bccea9
2 changed files with 39 additions and 6 deletions

View file

@ -129,12 +129,14 @@ sub buildXML {
$weight += $skuWeight;
}
next PACKAGE unless $weight;
$weight = sprintf "%.1f", $weight;
$weight = '0.1' if $weight == 0;
my $options = {
PackagingType => [ {
Code => [ '02' ],
} ],
PackageWeight => [ {
Weight => [ sprintf "%.1f", $weight ], ##Required formatting from spec
Weight => [ $weight ], ##Required formatting from spec
} ],
};
push @{ $packHash }, $options;