Subversion Repositories SmartDukaan

Rev

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

Rev 23019 Rev 23110
Line 75... Line 75...
75
	
75
	
76
	@Column(name = "purchase_id")
76
	@Column(name = "purchase_id")
77
	private int purchaseId;
77
	private int purchaseId;
78
	
78
	
79
	@Column(name="unit_price")
79
	@Column(name="unit_price")
80
	private Float unitPrice;
80
	private float unitPrice;
81
	
81
	
82
	@Column(name = "price_drop_amount")
82
	@Column(name = "price_drop_amount")
83
	private Float priceDropAmount;
83
	private float priceDropAmount;
84
	
84
	
85
	@Column(name = "buy_back", columnDefinition = "tinyint(1) default 1")
85
	@Column(name = "buy_back", columnDefinition = "tinyint(1) default 1")
86
	private boolean buyBack;
86
	private boolean buyBack;
87
	
87
	
88
	@Column(name = "igst_rate")
88
	@Column(name = "igst_rate")
Line 147... Line 147...
147
	
147
	
148
	public int getInitialQuantity() {
148
	public int getInitialQuantity() {
149
		return initialQuantity;
149
		return initialQuantity;
150
	}
150
	}
151
 
151
 
152
	public Float getUnitPrice() {
152
	public float getUnitPrice() {
153
		return unitPrice;
153
		return unitPrice;
154
	}
154
	}
155
 
155
 
156
	public void setUnitPrice(Float unitPrice) {
156
	public void setUnitPrice(Float unitPrice) {
157
		this.unitPrice = unitPrice;
157
		this.unitPrice = unitPrice;
158
	}
158
	}
159
 
159
 
160
	public void setInitialQuantity(int initialQuantity) {
160
	public void setInitialQuantity(int initialQuantity) {
161
		this.initialQuantity = initialQuantity;
161
		this.initialQuantity = initialQuantity;
162
	}
162
	}
-
 
163
	
-
 
164
	public float getNetPrice(){
-
 
165
		return unitPrice - priceDropAmount;
-
 
166
	}
163
 
167
 
164
	public int getGoodQuantity() {
168
	public int getGoodQuantity() {
165
		return goodQuantity;
169
		return goodQuantity;
166
	}
170
	}
167
 
171
 
Line 190... Line 194...
190
	}
194
	}
191
	public void setPurchaseId(int purchaseId) {
195
	public void setPurchaseId(int purchaseId) {
192
		this.purchaseId = purchaseId;
196
		this.purchaseId = purchaseId;
193
	}
197
	}
194
	
198
	
195
	public Float getPriceDropAmount() {
199
	public float getPriceDropAmount() {
196
		return priceDropAmount;
200
		return priceDropAmount;
197
	}
201
	}
198
	public void setPriceDropAmount(Float priceDropAmount) {
202
	public void setPriceDropAmount(float priceDropAmount) {
199
		this.priceDropAmount = priceDropAmount;
203
		this.priceDropAmount = priceDropAmount;
200
	}
204
	}
201
	
205
	
202
	public float getIgstRate() {
206
	public float getIgstRate() {
203
		return igstRate;
207
		return igstRate;