Multiple settlement options. Upgrade SQL Script included.

This commit is contained in:
unknown
2011-03-12 00:19:48 +05:30
parent 9ed5843dbd
commit aea41a9d24
42 changed files with 1917 additions and 1550 deletions

View File

@ -1,46 +1,60 @@
using System;
using System.Runtime.Serialization;
using FluentNHibernate.Mapping;
using Tanshu.Accounts.Entities.Auth;
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<Kot>();
Settlements = new List<VoucherSettlement>();
}
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; }
[NotNull]
public virtual SettleOption Settled { get; set; }
[Cascade]
public virtual IList<VoucherSettlement> 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<Kot> Kots { get; set; }
public Voucher()
{
this.Kots = new List<Kot>();
}
}
}
}