using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JAMM.Kasse.Models
{
    /// <summary>
    /// Model für Steuern
    /// </summary>
    public class Tax
    {
        private int id;
        private string note;
        private int tax;

        //Konstruktor
        public Tax(int id, string note, int tax)
        {
            this.id = id;
            this.note = note;
            this.tax = tax;
        }

        //ab hier Properties

        public int Id
        {
            get { return id; }
        }

        public string Name
        {
            get { return note; }
        }

        public int Taxset
        {
            get { return tax; }
        }

        public string TaxToString
        {
            get { return "" + tax + " %"; }
        }
    }
}
