Subversion Repositories SmartDukaan

Rev

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

Rev 22025 Rev 22351
Line 10... Line 10...
10
	private float cgstRate;
10
	private float cgstRate;
11
	private float cgstAmount;
11
	private float cgstAmount;
12
	private float sgstRate;
12
	private float sgstRate;
13
	private float sgstAmount;
13
	private float sgstAmount;
14
	private String hsnCode;
14
	private String hsnCode;
15
	//private float itemTotal;
-
 
16
	private String serialNumbers;
-
 
-
 
15
	
17
	public String getDescription() {
16
	public String getDescription() {
18
		return description;
17
		return description;
19
	}
18
	}
20
	public void setDescription(String description) {
19
	public void setDescription(String description) {
21
		this.description = description;
20
		this.description = description;
Line 79... Line 78...
79
	}
78
	}
80
	public void setHsnCode(String hsnCode) {
79
	public void setHsnCode(String hsnCode) {
81
		this.hsnCode = hsnCode;
80
		this.hsnCode = hsnCode;
82
	}
81
	}
83
	
82
	
84
	public String getSerialNumbers() {
-
 
85
		return serialNumbers;
-
 
86
	}
-
 
87
	public void setSerialNumbers(String serialNumbers) {
-
 
88
		this.serialNumbers = serialNumbers;
-
 
89
	}
-
 
90
	@Override
83
	@Override
91
	public int hashCode() {
84
	public int hashCode() {
92
		final int prime = 31;
85
		final int prime = 31;
93
		int result = 1;
86
		int result = 1;
94
		result = prime * result + Float.floatToIntBits(amount);
87
		result = prime * result + Float.floatToIntBits(amount);
Line 99... Line 92...
99
		result = prime * result + Float.floatToIntBits(igstAmount);
92
		result = prime * result + Float.floatToIntBits(igstAmount);
100
		result = prime * result + Float.floatToIntBits(igstRate);
93
		result = prime * result + Float.floatToIntBits(igstRate);
101
		//result = prime * result + Float.floatToIntBits(itemTotal);
94
		//result = prime * result + Float.floatToIntBits(itemTotal);
102
		result = prime * result + quantity;
95
		result = prime * result + quantity;
103
		result = prime * result + Float.floatToIntBits(rate);
96
		result = prime * result + Float.floatToIntBits(rate);
104
		result = prime * result + ((serialNumbers == null) ? 0 : serialNumbers.hashCode());
-
 
105
		result = prime * result + Float.floatToIntBits(sgstAmount);
97
		result = prime * result + Float.floatToIntBits(sgstAmount);
106
		result = prime * result + Float.floatToIntBits(sgstRate);
98
		result = prime * result + Float.floatToIntBits(sgstRate);
107
		return result;
99
		return result;
108
	}
100
	}
109
	@Override
101
	@Override
Line 137... Line 129...
137
			return false;
129
			return false;
138
		if (quantity != other.quantity)
130
		if (quantity != other.quantity)
139
			return false;
131
			return false;
140
		if (Float.floatToIntBits(rate) != Float.floatToIntBits(other.rate))
132
		if (Float.floatToIntBits(rate) != Float.floatToIntBits(other.rate))
141
			return false;
133
			return false;
142
		if (serialNumbers == null) {
-
 
143
			if (other.serialNumbers != null)
-
 
144
				return false;
-
 
145
		} else if (!serialNumbers.equals(other.serialNumbers))
-
 
146
			return false;
-
 
147
		if (Float.floatToIntBits(sgstAmount) != Float.floatToIntBits(other.sgstAmount))
134
		if (Float.floatToIntBits(sgstAmount) != Float.floatToIntBits(other.sgstAmount))
148
			return false;
135
			return false;
149
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
136
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
150
			return false;
137
			return false;
151
		return true;
138
		return true;
Line 153... Line 140...
153
	@Override
140
	@Override
154
	public String toString() {
141
	public String toString() {
155
		return "CustomFofoOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
142
		return "CustomFofoOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
156
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
143
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
157
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
144
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
158
				+ ", hsnCode=" + hsnCode + ", serialNumbers=" + serialNumbers + "]";
145
				+ ", hsnCode=" + hsnCode + "]";
159
	}
146
	}
160
	
147
	
161
	
148
	
162
}
149
}