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

namespace WK5.Core.Models.Lager
{
    public class LagerabwertungInput
    {
        private decimal _maxMenge = 1;

        public string Artikelnummer { get; set; } = String.Empty;
        public decimal Menge { get; set; } = 1;
        public decimal Preis { get; set; }
        public decimal MaxPreis { get; set; }
        public int Charge { get; set; }
        public string Seriennummer { get; set; } = String.Empty;
        public bool BenötigtSeriennummer { get; set; }

        public decimal MaxMenge { get => _maxMenge; set => _maxMenge = value <= 0 ? 1 : value; }
    }
}
