Skip to content

Commit

Permalink
Include the item weight in the default total package weight for a sel…
Browse files Browse the repository at this point in the history
…ected package
  • Loading branch information
rachelmcr committed Nov 28, 2024
1 parent 83226e1 commit 83a0c38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ final class WooShippingCreateLabelsViewModel: ObservableObject {
length: Double(packageData.length) ?? 0,
width: Double(packageData.width) ?? 0,
height: Double(packageData.height) ?? 0,
weight: Double(packageData.weight) ?? 0,
weight: itemsDataSource.items.map { $0.weight }.reduce(0, +) + (Double(packageData.weight) ?? 0),
isLetter: WooShippingPackageType(rawValue: packageData.packageType) == .envelope,
hazmatCategory: nil, // Hazmat support will be added in a future milestone
customsForm: nil) // Customs form support will be added in a future milestone
Expand Down

0 comments on commit 83a0c38

Please sign in to comment.