/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param> ///<param name="accountType">Type of account to which sales amounts apply. This is set to NA when Type is set as Earned.</param> ///<param name="value">Gets or sets the content value of the &lt;SalesAmount&gt; element</param> /// public SalesAmount( SalesAmountType type, AccountType accountType, decimal? value ) : base(FoodDTD.SALESAMOUNT) { this.SetType( type ); this.SetAccountType( accountType ); this.Value = value; }
///<summary>Adds the value of the <c><SalesAmount></c> element.</summary> /// <param name="Type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param> /// <param name="AccountType">Type of account to which sales amounts apply. This is set to NA when Type is set as Earned.</param> /// <param name="Value">Gets or sets the content value of the &lt;SalesAmount&gt; element</param> ///<remarks> /// <para>This form of <c>setSalesAmount</c> is provided as a convenience method /// that is functionally equivalent to the method <c>AddSalesAmount</c></para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void AddSalesAmount(SalesAmountType Type, AccountType AccountType, decimal?Value) { AddChild(FoodDTD.SALESAMOUNTS_SALESAMOUNT, new SalesAmount(Type, AccountType, Value)); }
/// <summary> /// Constructor that accepts values for all mandatory fields /// </summary> ///<param name="type">Type of SalesAmount. This denotes the form of incoming funds for the sales done.</param> ///<param name="accountType">Type of account to which sales amounts apply. This is set to NA when Type is set as Earned.</param> ///<param name="value">Gets or sets the content value of the &lt;SalesAmount&gt; element</param> /// public SalesAmount(SalesAmountType type, AccountType accountType, decimal?value) : base(FoodDTD.SALESAMOUNT) { this.SetType(type); this.SetAccountType(accountType); this.Value = value; }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A SalesAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Type of SalesAmount. This denotes the form of incoming funds for the sales done."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType( SalesAmountType val ) { SetField( FoodDTD.SALESAMOUNT_TYPE, val ); }
/// <summary> /// Sets the value of the <c>Type</c> attribute. /// </summary> /// <param name="val">A SalesAmountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Type of SalesAmount. This denotes the form of incoming funds for the sales done."</para> /// <para>Version: 2.6</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetType(SalesAmountType val) { SetField(FoodDTD.SALESAMOUNT_TYPE, val); }