public Check(User user, Address address, IEnumerable <CheckLine> lines, CheckType checkType) : this() { _numberprefix = user.Id.ToString() + "-"; _new = true; Timestamp = DateTime.Now; Clerk = user.Id.ToString(); CheckType = checkType; Date = DateTime.Now; ChangeOpening = DateTime.Today; Status = Status.Closed; Address = address; PaymentType = PaymentType.Cash; SaleType = SaleType.FullCost; Lines.AddEach(lines); UpdateStat(); }