Exemplo n.º 1
0
 /// <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 &amp;lt;SalesAmount&amp;gt; element</param>
 ///
 public SalesAmount( SalesAmountType type, AccountType accountType, decimal? value )
     : base(FoodDTD.SALESAMOUNT)
 {
     this.SetType( type );
     this.SetAccountType( accountType );
     this.Value = value;
 }
Exemplo n.º 2
0
 /// <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 );
 }