Subversion Repositories SmartDukaan

Rev

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

Rev 22684 Rev 22858
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
3
public class CustomFofoOrderItem {
3
public class CustomOrderItem {
4
	private String description;
4
	private String description;
5
	private int quantity;
5
	private int quantity;
6
	private float rate;
6
	private float rate;
7
	private float discount;
7
	private float discount;
8
	private float amount;
8
	private float amount;
Line 79... Line 79...
79
		return hsnCode;
79
		return hsnCode;
80
	}
80
	}
81
	public void setHsnCode(String hsnCode) {
81
	public void setHsnCode(String hsnCode) {
82
		this.hsnCode = hsnCode;
82
		this.hsnCode = hsnCode;
83
	}
83
	}
-
 
84
	public float getDiscount() {
-
 
85
		return discount;
-
 
86
	}
-
 
87
	public void setDiscount(float discount) {
-
 
88
		this.discount = discount;
-
 
89
	}
-
 
90
	public float getNetAmount() {
-
 
91
		return netAmount;
-
 
92
	}
-
 
93
	public void setNetAmount(float netAmount) {
-
 
94
		this.netAmount = netAmount;
-
 
95
	}
84
	
96
	
85
	@Override
97
	@Override
86
	public int hashCode() {
98
	public int hashCode() {
87
		final int prime = 31;
99
		final int prime = 31;
88
		int result = 1;
100
		int result = 1;
Line 106... Line 118...
106
			return true;
118
			return true;
107
		if (obj == null)
119
		if (obj == null)
108
			return false;
120
			return false;
109
		if (getClass() != obj.getClass())
121
		if (getClass() != obj.getClass())
110
			return false;
122
			return false;
111
		CustomFofoOrderItem other = (CustomFofoOrderItem) obj;
123
		CustomOrderItem other = (CustomOrderItem) obj;
112
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
124
		if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))
113
			return false;
125
			return false;
114
		if (Float.floatToIntBits(cgstAmount) != Float.floatToIntBits(other.cgstAmount))
126
		if (Float.floatToIntBits(cgstAmount) != Float.floatToIntBits(other.cgstAmount))
115
			return false;
127
			return false;
116
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
128
		if (Float.floatToIntBits(cgstRate) != Float.floatToIntBits(other.cgstRate))
Line 139... Line 151...
139
			return false;
151
			return false;
140
		return true;
152
		return true;
141
	}
153
	}
142
	@Override
154
	@Override
143
	public String toString() {
155
	public String toString() {
144
		return "CustomFofoOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
156
		return "CustomOrderItem [description=" + description + ", quantity=" + quantity + ", rate=" + rate
145
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
157
				+ ", amount=" + amount + ", igstRate=" + igstRate + ", igstAmount=" + igstAmount + ", cgstRate="
146
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
158
				+ cgstRate + ", cgstAmount=" + cgstAmount + ", sgstRate=" + sgstRate + ", sgstAmount=" + sgstAmount
147
				+ ", hsnCode=" + hsnCode + "]";
159
				+ ", hsnCode=" + hsnCode + "]";
148
	}
160
	}
149
	public float getDiscount() {
-
 
150
		return discount;
-
 
151
	}
-
 
152
	public void setDiscount(float discount) {
-
 
153
		this.discount = discount;
-
 
154
	}
-
 
155
	public float getNetAmount() {
-
 
156
		return netAmount;
-
 
157
	}
-
 
158
	public void setNetAmount(float netAmount) {
-
 
159
		this.netAmount = netAmount;
-
 
160
	}
-
 
161
	
-
 
162
	
-
 
163
}
161
}