Skip to content
This repository was archived by the owner on Sep 3, 2021. It is now read-only.
This repository was archived by the owner on Sep 3, 2021. It is now read-only.

Error in package ID calculation in Rate.php #58

@mgcobblestone

Description

@mgcobblestone

Hi,
There appears to be an error in the logic that generates the package IDs in Rate.php

Line 75 should read:

$packageId = $id !== null ? $id : ((count($this->packages['Package']) + 1));

instead of

$packageId = $id !== null ? $id : ((count($this->packages) + 1));

Currently, for shipments containing more than 2 packages, everything after the 2nd package gets an ID of 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions