Business::Shipping::USPS_Online::Package - Business::Shipping::USPS_Online::Package documentation


Business-Shipping documentation  | view source Contained in the Business-Shipping distribution.

Index


NAME

Top

Business::Shipping::USPS_Online::Package

METHODS

Top

container

Default 'None'.

size

Default 'Regular'.

machinable

Default 'False'.

mail_type

Default 'Package'.

pounds

ounces

weight

Overrides the standard weight definition so that it can correctly set pounds & ounces.

set_lbs_oz

Set pounds and ounces. Converts from fractional pounds.

lbs_oz_to_weight

Converts pounds + ounces to fractional weight. Returns weight. , =cut

sub lbs_oz_to_weight { my ($self) = @_;

    trace '()';

    my $pounds = $self->pounds || 0;
    my $ounces = $self->ounces || 0;
    my $fractional_pounds = $ounces ? ($ounces / 16) : 0;
    my $weight = ($pounds + $fractional_pounds);

    return $weight;
}

1;

__END__

AUTHOR

Top

Daniel Browning, db@kavod.com, http://www.kavod.com/

COPYRIGHT AND LICENCE

Top


Business-Shipping documentation  | view source Contained in the Business-Shipping distribution.