Breaking Changes. Upgrade Script in Sql directory. Deployed
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user