20eac3c216
This needed major refactor in all parts dealing with product or inventory.
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Tanshu.Accounts.Contracts
|
|
{
|
|
public class SalesAnalysis
|
|
{
|
|
public virtual string GroupType { get; set; }
|
|
public virtual decimal Amount { get; set; }
|
|
}
|
|
|
|
public class TaxAnalysis
|
|
{
|
|
public virtual string Name { get; set; }
|
|
public virtual decimal TaxRate { get; set; }
|
|
public virtual decimal NetSale { get; set; }
|
|
public virtual decimal TaxAmount { get; set; }
|
|
}
|
|
|
|
public class SalesAnalysisDetail
|
|
{
|
|
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
|
|
{
|
|
public virtual DateTime Date { get; set; }
|
|
public virtual string BillID { get; set; }
|
|
public virtual decimal Amount { get; set; }
|
|
public virtual string Settlement { get; set; }
|
|
}
|
|
}
|