using System; using System.Collections.Generic; using Tanshu.Accounts.Contracts; using Tanshu.Accounts.Contracts.Attributes; using Tanshu.Accounts.Entities.Auth; namespace Tanshu.Accounts.Entities { public class Voucher { public Voucher() { Kots = new List(); Settlements = new List(); } public virtual int VoucherID { get; set; } public virtual DateTime? Date { get; set; } public virtual string Narration { get; set; } [NotNull] public virtual User User { get; set; } [NotNull] public virtual DateTime CreationDate { get; set; } [NotNull] public virtual DateTime LastEditDate { get; set; } [NotNull] public virtual string BillID { get; set; } [NotNull] public virtual string TableID { get; set; } [NotNull] public virtual Waiter Waiter { get; set; } [NotNull] public virtual Customer Customer { get; set; } [Cascade] public virtual IList Settlements { get; set; } [NotNull] public virtual bool Void { get; set; } [AllowNull] public virtual string VoidReason { get; set; } [NotNull] public virtual bool Printed { get; set; } [NotNull] public virtual string KotID { get; set; } [Cascade] public virtual IList Kots { get; set; } } }