Lager - v5.2.0
    Preparing search index...

    Function calcOrderTotalPrice

    • Function

      Calculates the total price of an order.

      This function loops through all items in the order and calculates the total price based on the quantity and price of each item. If an error occurs during the calculation, it is caught and logged.

      calcOrderTotalPrice

      Parameters

      • order: Partial<Order>

        The order to calculate the total price for.

      Returns number

      The total price of the order.

      If there is an error during the calculation, it is caught and logged.