Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21686 ashik.ali 1
package com.spice.profitmandi.common.model;
2
 
3
public class CustomFofoOrderItem {
4
	private String description;
5
	private int quantity;
6
	private float rate;
7
	private float amount;
21894 ashik.ali 8
	private float igstRate;
21915 ashik.ali 9
	private float igstAmount;
21894 ashik.ali 10
	private float cgstRate;
21915 ashik.ali 11
	private float cgstAmount;
21894 ashik.ali 12
	private float sgstRate;
21915 ashik.ali 13
	private float sgstAmount;
21894 ashik.ali 14
	private String hsnCode;
21686 ashik.ali 15
	private float itemTotal;
16
	private String serialNumbers;
17
	public String getDescription() {
18
		return description;
19
	}
20
	public void setDescription(String description) {
21
		this.description = description;
22
	}
23
	public int getQuantity() {
24
		return quantity;
25
	}
26
	public void setQuantity(int quantity) {
27
		this.quantity = quantity;
28
	}
29
	public float getRate() {
30
		return rate;
31
	}
32
	public void setRate(float rate) {
33
		this.rate = rate;
34
	}
35
	public float getAmount() {
36
		return amount;
37
	}
38
	public void setAmount(float amount) {
39
		this.amount = amount;
40
	}
21894 ashik.ali 41
	public float getIgstRate() {
42
		return igstRate;
21686 ashik.ali 43
	}
21894 ashik.ali 44
	public void setIgstRate(float igstRate) {
45
		this.igstRate = igstRate;
21686 ashik.ali 46
	}
21915 ashik.ali 47
	public float getIgstAmount() {
48
		return igstAmount;
49
	}
50
	public void setIgstAmount(float igstAmount) {
51
		this.igstAmount = igstAmount;
52
	}
21894 ashik.ali 53
	public float getCgstRate() {
54
		return cgstRate;
21686 ashik.ali 55
	}
21894 ashik.ali 56
	public void setCgstRate(float cgstRate) {
57
		this.cgstRate = cgstRate;
21686 ashik.ali 58
	}
21915 ashik.ali 59
	public float getCgstAmount() {
60
		return cgstAmount;
61
	}
62
	public void setCgstAmount(float cgstAmount) {
63
		this.cgstAmount = cgstAmount;
64
	}
21894 ashik.ali 65
	public float getSgstRate() {
66
		return sgstRate;
67
	}
68
	public void setSgstRate(float sgstRate) {
69
		this.sgstRate = sgstRate;
70
	}
21915 ashik.ali 71
	public float getSgstAmount() {
72
		return sgstAmount;
73
	}
74
	public void setSgstAmount(float sgstAmount) {
75
		this.sgstAmount = sgstAmount;
76
	}
21894 ashik.ali 77
	public String getHsnCode() {
78
		return hsnCode;
79
	}
80
	public void setHsnCode(String hsnCode) {
81
		this.hsnCode = hsnCode;
82
	}
21686 ashik.ali 83
	public float getItemTotal() {
84
		return itemTotal;
85
	}
86
	public void setItemTotal(float itemTotal) {
87
		this.itemTotal = itemTotal;
88
	}
89
 
90
	public String getSerialNumbers() {
91
		return serialNumbers;
92
	}
93
	public void setSerialNumbers(String serialNumbers) {
94
		this.serialNumbers = serialNumbers;
95
	}
21923 ashik.ali 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
 
21686 ashik.ali 170
}