Add helper methods to shipment to calculate shipments item and total costs.

Fixes #2843