/// <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>AccountType</c> attribute. /// </summary> /// <param name="val">A AccountType object</param> /// <remarks> /// <para>The SIF specification defines the meaning of this attribute as: "Type of account to which sales amounts apply. This is set to NA when Type is set as Earned."</para> /// <para>Version: 2.5</para> /// <para>Since: 1.5r1</para> /// </remarks> public void SetAccountType( AccountType val ) { SetField( FoodDTD.SALESAMOUNT_ACCOUNTTYPE, val ); }