function calcItemTotalPrice(item) {
            if (!item) { return 0; }
            try {
                // item unit price + sum of itemOption prices
                var price = calcItemUnitPrice(item);
                price = item.orderItemOptions.reduce(function (total, opt) {
                    return total + calcItemOptionPrice(opt);
                }, price);
                return item.totalPrice = roundDollars(price * item.quantity);
            } catch (e) { }
            return item.totalPrice = 0;
        }
Both calculates and sets the orderItem.totalPrice *