using System;
using System.Collections.Generic;
using System.Text;

namespace GreenTree.Strohrmann.ERP.Core.Domain.Business
{
    public class Tax
    {
        #region Properties

        /// <summary>
        /// Tax id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Tax name
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Tax short name
        /// </summary>
        public string ShortName { get; set; }

        /// <summary>
        /// Tax percentage value
        /// </summary>
        public decimal Value { get; set; }

        /// <summary>
        /// Tax customers
        /// </summary>
        public virtual ICollection<Customer> Customers { get; set; }

        #endregion

        #region Ctor

        /// <summary>
        /// Initializes a new instance of the Tax class
        /// </summary>
        public Tax() { }

        /// <summary>
        /// Initializes a new instance of the Tax class
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="Name">The name.</param>
        /// <param name="shortName">The short name.</param>
        /// <param name="value">The percentage value.</param>
        public Tax(int id, string name, string shortName, decimal value) 
        {
            Id = id;
            Name = name;
            ShortName = shortName;
            Value = value;
        }

        #endregion
    }
}
