Refactor: Instead of a concept of Price/FullPrice, happy hour is now a checkbox in the product.
This needed major refactor in all parts dealing with product or inventory.
This commit is contained in:
@ -19,10 +19,22 @@ namespace Tanshu.Accounts.Contracts
|
||||
|
||||
public class SalesAnalysisDetail
|
||||
{
|
||||
public virtual string Product { get; set; }
|
||||
public virtual decimal Sale { get; set; }
|
||||
public virtual decimal NC { get; set; }
|
||||
public virtual decimal Staff { get; set; }
|
||||
private string _name;
|
||||
public Guid ProductID { get; set; }
|
||||
public string Name
|
||||
{
|
||||
get
|
||||
{
|
||||
return IsHappyHour ? "H H " + _name : _name;
|
||||
}
|
||||
set
|
||||
{
|
||||
_name = value;
|
||||
}
|
||||
}
|
||||
public bool IsHappyHour { get; set; }
|
||||
public decimal Sale { get; set; }
|
||||
public decimal NC { get; set; }
|
||||
}
|
||||
public class BillDetail
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user