Added Basecode to Product
Added Voucher Type During Printing Added Discount Report Fixed Void bill table not getting cleared error Added PAX to table Removed Itital Setup button in MainForm as it was not doing anything
This commit is contained in:
@ -18,5 +18,9 @@ namespace Tanshu.Accounts.Entities
|
||||
public virtual decimal FullPrice { get; set; }
|
||||
public virtual bool Discontinued { get; set; }
|
||||
public virtual int SortOrder { get; set; }
|
||||
[NotNull]
|
||||
public virtual int BaseCode { get; set; }
|
||||
[NotNull]
|
||||
public virtual decimal Quantity { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,13 +12,17 @@ namespace Tanshu.Accounts.Entities
|
||||
CreditCard = 3,
|
||||
[Display("No Charge", true, 3)]
|
||||
NoCharge = 4,
|
||||
[Display("Bill To Company", true, 4)]
|
||||
[Display("Bill To Company", true, 2)]
|
||||
BillToCompany = 5,
|
||||
[Display("Tip", true, 2)]
|
||||
Tip = 6,
|
||||
[Display("Round Off", false, 1)]
|
||||
RoundOff = 7,
|
||||
[Display("Amount", false, 1)]
|
||||
Amount = 8
|
||||
Amount = 8,
|
||||
[Display("Settled", false, 1)]
|
||||
Settled = 9,
|
||||
[Display("Staff",true,4)]
|
||||
Staff = 10
|
||||
}
|
||||
}
|
||||
@ -19,6 +19,19 @@ namespace Tanshu.Accounts.Entities
|
||||
{
|
||||
this._date = null;
|
||||
this.User = user;
|
||||
VoucherType = VoucherType.Regular;
|
||||
}
|
||||
|
||||
public Voucher(User user, Customer customer, string table, Waiter waiter ,bool printed, bool isVoid, string narration )
|
||||
: this(user)
|
||||
{
|
||||
Customer = customer;
|
||||
TableID = table;
|
||||
Waiter = waiter;
|
||||
_printed = printed;
|
||||
Void = isVoid;
|
||||
Narration = narration;
|
||||
VoucherType = VoucherType.Regular;
|
||||
}
|
||||
|
||||
protected int _voucherID;
|
||||
@ -33,7 +46,7 @@ namespace Tanshu.Accounts.Entities
|
||||
get { return _date; }
|
||||
}
|
||||
|
||||
public virtual string Narration { get; set; }
|
||||
public virtual int Pax { get; set; }
|
||||
|
||||
[NotNull]
|
||||
public virtual User User { get; set; }
|
||||
@ -71,6 +84,8 @@ namespace Tanshu.Accounts.Entities
|
||||
[Cascade]
|
||||
public virtual IList<VoucherSettlement> Settlements { get; set; }
|
||||
|
||||
public virtual string Narration { get; set; }
|
||||
|
||||
[NotNull]
|
||||
public virtual bool Void { get; set; }
|
||||
|
||||
@ -95,9 +110,9 @@ namespace Tanshu.Accounts.Entities
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning disable 649
|
||||
public virtual VoucherType VoucherType { get; set; }
|
||||
|
||||
private string _kotID;
|
||||
#pragma warning restore 649
|
||||
|
||||
[NotNull]
|
||||
public virtual string KotID
|
||||
|
||||
16
Tanshu.Accounts.Contracts/Data Contracts/VoucherType.cs
Normal file
16
Tanshu.Accounts.Contracts/Data Contracts/VoucherType.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using Tanshu.Accounts.Contracts;
|
||||
|
||||
namespace Tanshu.Accounts.Entities
|
||||
{
|
||||
public enum VoucherType
|
||||
{
|
||||
[Display("Regular Bill", true, 2)]
|
||||
Regular = 1,
|
||||
[Display("No Charge", true, 3)]
|
||||
NoCharge = 2,
|
||||
[Display("Take Away", true, 2)]
|
||||
TakeAway = 3,
|
||||
[Display("Staff Bill", true, 4)]
|
||||
Staff = 4,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user