Chore: Removed Waiter as it was not ever used.
Refactor: Changed the user list form to a normal form. Feature: Service Charge disabled setting removes it from the Product Form.
This commit is contained in:
@ -22,12 +22,11 @@ namespace Tanshu.Accounts.Entities
|
||||
VoucherType = VoucherType.Regular;
|
||||
}
|
||||
|
||||
public Voucher(User user, Customer customer, FoodTable table, Waiter waiter, bool printed, bool isVoid, string narration)
|
||||
public Voucher(User user, Customer customer, FoodTable table, bool printed, bool isVoid, string narration)
|
||||
: this(user)
|
||||
{
|
||||
Customer = customer;
|
||||
Table = table;
|
||||
Waiter = waiter;
|
||||
Printed = printed;
|
||||
Void = isVoid;
|
||||
Narration = narration;
|
||||
@ -48,7 +47,6 @@ namespace Tanshu.Accounts.Entities
|
||||
protected int? _billID;
|
||||
public virtual int? BillID { get { return _billID; } }
|
||||
public virtual FoodTable Table { get; set; }
|
||||
public virtual Waiter Waiter { get; set; }
|
||||
public virtual Customer Customer { get; set; }
|
||||
public virtual IList<VoucherSettlement> Settlements { get; set; }
|
||||
public virtual string Narration { get; set; }
|
||||
@ -93,8 +91,8 @@ namespace Tanshu.Accounts.Entities
|
||||
Table("Vouchers");
|
||||
Schema("dbo");
|
||||
Lazy(true);
|
||||
SqlInsert(@"exec VoucherInsert ?,?,?,?,?,?,?,?,?,?,?");
|
||||
SqlUpdate(@"exec VoucherUpdate ?,?,?,?,?,?,?,?,?,?,?");
|
||||
SqlInsert(@"exec VoucherInsert ?,?,?,?,?,?,?,?,?,?");
|
||||
SqlUpdate(@"exec VoucherUpdate ?,?,?,?,?,?,?,?,?,?");
|
||||
Id(x => x.VoucherID, map => map.Generator(Generators.GuidComb));
|
||||
Property(x => x.Date, map =>
|
||||
{
|
||||
@ -149,13 +147,6 @@ namespace Tanshu.Accounts.Entities
|
||||
map.Cascade(Cascade.None);
|
||||
});
|
||||
|
||||
ManyToOne(x => x.Waiter, map =>
|
||||
{
|
||||
map.Column("WaiterID");
|
||||
map.NotNullable(true);
|
||||
map.Cascade(Cascade.None);
|
||||
});
|
||||
|
||||
ManyToOne(x => x.Customer, map =>
|
||||
{
|
||||
map.Column("CustomerID");
|
||||
|
||||
Reference in New Issue
Block a user