Breaking Changes. Upgrade Script in Sql directory. Deployed

This commit is contained in:
unknown
2011-02-18 22:24:48 +05:30
parent d4cfa92848
commit 9ed5843dbd
86 changed files with 2616 additions and 2358 deletions

View File

@ -60,18 +60,7 @@ namespace Tanshu.Accounts.Contracts
}
}
private decimal printed;
public decimal Printed
{
get { return printed; }
set
{
if (value < 0)
throw new ArgumentException("Printed has to be non-negative greater than or equal to zero.");
else
printed = value;
}
}
public bool Printed {get; set;}
public decimal Value
{
@ -80,14 +69,6 @@ namespace Tanshu.Accounts.Contracts
return Price * Quantity * (1 - discount) * (1 + ServiceCharge) * (1 + Tax);
}
}
public decimal Additional
{
get
{
return Quantity - Printed;
}
}
public bool isNew;
public string Display
{
@ -116,8 +97,7 @@ namespace Tanshu.Accounts.Contracts
public BillInventory()
{
Quantity = 1;
printed = 0;
isNew = true;
Printed = false;
Modifiers = new List<Modifier>();
}
}

View File

@ -6,25 +6,18 @@ namespace Tanshu.Accounts.Contracts
public class BillItemKey
{
//Old = 0, New = 1, Modifiers = 2+
public BillItemKey(int ProductID, bool IsNew)
public BillItemKey(int ProductID, int KotID)
{
this.ProductID = ProductID;
this.IsNew = IsNew;
this.KotID = KotID;
}
public int ProductID
{
get;
private set;
}
public bool IsNew
{
get;
private set;
}
public int ProductID { get; private set; }
public int KotID { get; private set; }
public override int GetHashCode()
{
return ProductID.GetHashCode() ^ IsNew.GetHashCode();
return ProductID.GetHashCode() ^ KotID.GetHashCode();
}
public override bool Equals(object obj)
{
@ -35,7 +28,7 @@ namespace Tanshu.Accounts.Contracts
}
public override string ToString()
{
return string.Format("{0} - {1}", ProductID, IsNew);
return string.Format("{0} - {1}", ProductID, KotID);
}
public static bool operator ==(BillItemKey a, BillItemKey b)
@ -48,7 +41,7 @@ namespace Tanshu.Accounts.Contracts
if (!(b is BillItemKey))
return false;
return a.ProductID == b.ProductID && a.IsNew == b.IsNew;
return a.ProductID == b.ProductID && a.KotID == b.KotID;
}
public static bool operator !=(BillItemKey a, BillItemKey b)
{