Subversion Repositories SmartDukaan

Rev

Rev 21915 | Rev 22025 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21915 Rev 21923
Line 91... Line 91...
91
		return serialNumbers;
91
		return serialNumbers;
92
	}
92
	}
93
	public void setSerialNumbers(String serialNumbers) {
93
	public void setSerialNumbers(String serialNumbers) {
94
		this.serialNumbers = serialNumbers;
94
		this.serialNumbers = serialNumbers;
95
	}
95
	}
-
 
96
	@Override
-
 
97
	public int hashCode() {
-
 
98
		final int prime = 31;
-
 
99
		int result = 1;
-
 
100
		result = prime * result + Float.floatToIntBits(amount);
-
 
101
		result = prime * result + Float.floatToIntBits(cgstAmount);
-
 
102
		result = prime * result + Float.floatToIntBits(cgstRate);
-
 
103
		result = prime * result + ((description == null) ? 0 : description.hashCode());
-
 
104
		result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
-
 
105
		result = prime * result + Float.floatToIntBits(igstAmount);
-
 
106
		result = prime * result + Float.floatToIntBits(igstRate);
-
 
107
		result = prime * result + Float.floatToIntBits(itemTotal);
-
 
108
		result = prime * result + quantity;
-
 
109
		result = prime * result + Float.floatToIntBits(rate);
-
 
110
		result = prime * result + ((serialNumbers == null) ? 0 : serialNumbers.hashCode());
-
 
111
		result = prime * result + Float.floatToIntBits(sgstAmount);
-
 
112
		result = prime * result + Float.floatToIntBits(sgstRate);
-
 
113
		return result;
-
 
114
	}
-
 
115
	@Override
-
 
116
	public boolean equals(Object obj) {
-
 
117
		if (this == obj)
-
 
118
			return true;
-
 
119
		if (obj == null)
-
 
120
			return false;
-
 
121
		if (getClass() != obj.getClass())
-
 
122
			return false;
-
 
123
		CustomFofoOrderItem other = (CustomFofoOrderItem) obj;
-
 
124
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
-
 
125
			return false;
-
 
126
		if (Float.floatToIntBits(cgstAmount) != Float.floatToIntBits(other.cgstAmount))
-
 
127
			return false;
-
 
128
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
-
 
129
			return false;
-
 
130
		if (description == null) {
-
 
131
			if (other.description != null)
-
 
132
				return false;
-
 
133
		} else if (!description.equals(other.description))
-
 
134
			return false;
-
 
135
		if (hsnCode == null) {
-
 
136
			if (other.hsnCode != null)
-
 
137
				return false;
-
 
138
		} else if (!hsnCode.equals(other.hsnCode))
-
 
139
			return false;
-
 
140
		if (Float.floatToIntBits(igstAmount) != Float.floatToIntBits(other.igstAmount))
-
 
141
			return false;
-
 
142
		if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
-
 
143
			return false;
-
 
144
		if (Float.floatToIntBits(itemTotal) != Float.floatToIntBits(other.itemTotal))
-
 
145
			return false;
-
 
146
		if (quantity != other.quantity)
-
 
147
			return false;
-
 
148
		if (Float.floatToIntBits(rate) != Float.floatToIntBits(other.rate))
-
 
149
			return false;
-
 
150
		if (serialNumbers == null) {
-
 
151
			if (other.serialNumbers != null)
-
 
152
				return false;
-
 
153
		} else if (!serialNumbers.equals(other.serialNumbers))
-
 
154
			return false;
-
 
155
		if (Float.floatToIntBits(sgstAmount) != Float.floatToIntBits(other.sgstAmount))
-
 
156
			return false;
-
 
157
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
-
 
158
			return false;
-
 
159
		return true;
-
 
160
	}
-
 
161
	@Override
-
 
162
	public String toString() {
-
 
163
		return "CustomFofoOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
-
 
164
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
-
 
165
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
-
 
166
				+ ", hsnCode=" + hsnCode + ", itemTotal=" + itemTotal + ", serialNumbers=" + serialNumbers + "]";
-
 
167
	}
-
 
168
	
-
 
169
	
96
}
170
}