Clip lowside weight at 0.1 lbs. Otherwise UPS will gripe at you.
This commit is contained in:
parent
8bcacc8316
commit
fe63bccea9
2 changed files with 39 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue