lightspeedretail/webstore — Issue #214: usps: ultralight items calculating as 0 weight and stopping module
Author: ktwbc
Created: 2012-02-14 21:22:06+00:00
State: open
Labels: Bug Fix

if a product contains a light weight like 0.02 ounces, the usps module will skip beyond the 1 pound minimum (because it is non zero) yet when converting ounces to pounds, will round to 0 and then fail in the module.

getrate() needs to change the line to

if (($this->ounces + $this->pounds) == 0)
$this->pounds=1;