FedEx::packageTotalWeight() shouldn't recalculate weight for shipment items

Created on 27 May 2020, over 4 years ago
Updated 13 March 2024, 8 months ago

Problem/Motivation

The method FedEx::packageTotalWeight() recalculates weights for shipment items, however this calculation is done already in packer plugins and may reflect different business logic than (order item quantity x purchased entity weight). The all-in-one weight calculator should defer to the passed values instead of repeating the default packer logic.

Proposed resolution

Defer to the shipment item to know its own weight.

Remaining tasks

QA, tests?

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Shouldn't be necessary but this is a behaviour change so, maybe?

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bradjones1 Digital Nomad Life

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024