OnTime Extension SDK Documentation
OnTime.Extensions.SDK Namespace / OrderBase Class / TotalCost Property



In This Topic
    TotalCost Property
    In This Topic
    The calculated total cost of this Order.
    Syntax
    'Declaration
     
    
    <DataMemberAttribute(False)>
    <DisplayNameAttribute("")>
    Public ReadOnly Property TotalCost As Decimal
    'Usage
     
    
    Dim instance As OrderBase
    Dim value As Decimal
     
    value = instance.TotalCost
    [DataMember(false)]
    [DisplayName("")]
    public decimal TotalCost {get;}
    [DataMember(false)]
    [DisplayName("")]
    public:
    property decimal TotalCost {
       decimal get();
    }
    Remarks
    This field is read-only and cannot be directly modified.

    The following fields are considered when calculating the total cost of an Order:
    • PriceSet
    • Customer
    • CollectionLocation
    • CollectionLocation.Zone
    • DeliveryLocation
    • DeliveryLocation.Zone
    • Distance
    • BasePrice
    • BasePriceType

    For more information, see Calculating the Total Cost of an Order in the OnTime Knowlege Base.
    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