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;
22668 amit.gupta 7
	private float discount;
21686 ashik.ali 8
	private float amount;
22684 amit.gupta 9
	private float netAmount;
21894 ashik.ali 10
	private float igstRate;
21915 ashik.ali 11
	private float igstAmount;
21894 ashik.ali 12
	private float cgstRate;
21915 ashik.ali 13
	private float cgstAmount;
21894 ashik.ali 14
	private float sgstRate;
21915 ashik.ali 15
	private float sgstAmount;
21894 ashik.ali 16
	private String hsnCode;
22351 ashik.ali 17
 
21686 ashik.ali 18
	public String getDescription() {
19
		return description;
20
	}
21
	public void setDescription(String description) {
22
		this.description = description;
23
	}
24
	public int getQuantity() {
25
		return quantity;
26
	}
27
	public void setQuantity(int quantity) {
28
		this.quantity = quantity;
29
	}
30
	public float getRate() {
31
		return rate;
32
	}
33
	public void setRate(float rate) {
34
		this.rate = rate;
35
	}
36
	public float getAmount() {
37
		return amount;
38
	}
39
	public void setAmount(float amount) {
40
		this.amount = amount;
41
	}
21894 ashik.ali 42
	public float getIgstRate() {
43
		return igstRate;
21686 ashik.ali 44
	}
21894 ashik.ali 45
	public void setIgstRate(float igstRate) {
46
		this.igstRate = igstRate;
21686 ashik.ali 47
	}
21915 ashik.ali 48
	public float getIgstAmount() {
49
		return igstAmount;
50
	}
51
	public void setIgstAmount(float igstAmount) {
52
		this.igstAmount = igstAmount;
53
	}
21894 ashik.ali 54
	public float getCgstRate() {
55
		return cgstRate;
21686 ashik.ali 56
	}
21894 ashik.ali 57
	public void setCgstRate(float cgstRate) {
58
		this.cgstRate = cgstRate;
21686 ashik.ali 59
	}
21915 ashik.ali 60
	public float getCgstAmount() {
61
		return cgstAmount;
62
	}
63
	public void setCgstAmount(float cgstAmount) {
64
		this.cgstAmount = cgstAmount;
65
	}
21894 ashik.ali 66
	public float getSgstRate() {
67
		return sgstRate;
68
	}
69
	public void setSgstRate(float sgstRate) {
70
		this.sgstRate = sgstRate;
71
	}
21915 ashik.ali 72
	public float getSgstAmount() {
73
		return sgstAmount;
74
	}
75
	public void setSgstAmount(float sgstAmount) {
76
		this.sgstAmount = sgstAmount;
77
	}
21894 ashik.ali 78
	public String getHsnCode() {
79
		return hsnCode;
80
	}
81
	public void setHsnCode(String hsnCode) {
82
		this.hsnCode = hsnCode;
83
	}
21686 ashik.ali 84
 
21923 ashik.ali 85
	@Override
86
	public int hashCode() {
87
		final int prime = 31;
88
		int result = 1;
89
		result = prime * result + Float.floatToIntBits(amount);
90
		result = prime * result + Float.floatToIntBits(cgstAmount);
91
		result = prime * result + Float.floatToIntBits(cgstRate);
92
		result = prime * result + ((description == null) ? 0 : description.hashCode());
93
		result = prime * result + ((hsnCode == null) ? 0 : hsnCode.hashCode());
94
		result = prime * result + Float.floatToIntBits(igstAmount);
95
		result = prime * result + Float.floatToIntBits(igstRate);
22025 ashik.ali 96
		//result = prime * result + Float.floatToIntBits(itemTotal);
21923 ashik.ali 97
		result = prime * result + quantity;
98
		result = prime * result + Float.floatToIntBits(rate);
99
		result = prime * result + Float.floatToIntBits(sgstAmount);
100
		result = prime * result + Float.floatToIntBits(sgstRate);
101
		return result;
102
	}
103
	@Override
104
	public boolean equals(Object obj) {
105
		if (this == obj)
106
			return true;
107
		if (obj == null)
108
			return false;
109
		if (getClass() != obj.getClass())
110
			return false;
111
		CustomFofoOrderItem other = (CustomFofoOrderItem) obj;
112
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
113
			return false;
114
		if (Float.floatToIntBits(cgstAmount) != Float.floatToIntBits(other.cgstAmount))
115
			return false;
116
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
117
			return false;
118
		if (description == null) {
119
			if (other.description != null)
120
				return false;
121
		} else if (!description.equals(other.description))
122
			return false;
123
		if (hsnCode == null) {
124
			if (other.hsnCode != null)
125
				return false;
126
		} else if (!hsnCode.equals(other.hsnCode))
127
			return false;
128
		if (Float.floatToIntBits(igstAmount) != Float.floatToIntBits(other.igstAmount))
129
			return false;
130
		if (Float.floatToIntBits(igstRate) != Float.floatToIntBits(other.igstRate))
131
			return false;
132
		if (quantity != other.quantity)
133
			return false;
134
		if (Float.floatToIntBits(rate) != Float.floatToIntBits(other.rate))
135
			return false;
136
		if (Float.floatToIntBits(sgstAmount) != Float.floatToIntBits(other.sgstAmount))
137
			return false;
138
		if (Float.floatToIntBits(sgstRate) != Float.floatToIntBits(other.sgstRate))
139
			return false;
140
		return true;
141
	}
142
	@Override
143
	public String toString() {
144
		return "CustomFofoOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
145
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
146
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
22351 ashik.ali 147
				+ ", hsnCode=" + hsnCode + "]";
21923 ashik.ali 148
	}
22668 amit.gupta 149
	public float getDiscount() {
150
		return discount;
151
	}
152
	public void setDiscount(float discount) {
153
		this.discount = discount;
154
	}
22684 amit.gupta 155
	public float getNetAmount() {
156
		return netAmount;
157
	}
158
	public void setNetAmount(float netAmount) {
159
		this.netAmount = netAmount;
160
	}
21923 ashik.ali 161
 
162
 
21686 ashik.ali 163
}