/// <summary> /// Updates the totals for a shipment. /// </summary> /// <param name="shipment">The shipment</param> /// <param name="totals">The model containing calculated totals for the shipment</param> protected virtual void UpdateShipmentTotals(Shipment shipment, ShippingTotals totals) { shipment.ShippingSubTotal = totals.ShippingCost.Amount; shipment.ShippingTax = totals.ShippingTax.Amount; shipment.SubTotal = totals.ItemsTotal.Amount; }
/// <summary> /// Updates the totals for a shipment. /// </summary> /// <param name="shipment">The shipment</param> /// <param name="totals">The model containing calculated totals for the shipment</param> protected virtual void UpdateShipmentTotals(Shipment shipment, ShippingTotals totals) { shipment.ShippingSubTotal = totals.ShippingCost.Amount; shipment.SubTotal = totals.ItemsTotal.Amount; }