OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / DataAccess Class / GetOrderTotalCost Method
A comprehensive Order object to calculate the total cost for.



In This Topic
    GetOrderTotalCost Method
    In This Topic
    Calculates and returns the total cost of a standalone Order object.
    Syntax
    'Declaration
     
    
    Public Function GetOrderTotalCost( _
       ByVal order As Order _
    ) As Decimal
    'Usage
     
    
    Dim instance As DataAccess
    Dim order As Order
    Dim value As Decimal
     
    value = instance.GetOrderTotalCost(order)
    public decimal GetOrderTotalCost( 
       Order order
    )
    public:
    decimal GetOrderTotalCost( 
       Order^ order
    ) 

    Parameters

    order
    A comprehensive Order object to calculate the total cost for.

    Return Value

    The calculated total cost of the Order as a Decimal.
    Remarks
    The final result is determined by the values present within the given Order object.
    The Order provided is considered standalone, and is not required to reference any pre-existing Order.
    Requirements

    Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11, Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019, Windows Server 2022

    See Also