Subversion Repositories SmartDukaan

Rev

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

Rev 30523 Rev 30652
Line 330... Line 330...
330
 
330
 
331
	public Purchase getPurchase() {
331
	public Purchase getPurchase() {
332
		return purchase;
332
		return purchase;
333
	}
333
	}
334
 
334
 
-
 
335
	public double getMarginPercentage(double amount) {
-
 
336
		return amount / this.getNetPrice() * (100 + this.getCgstRate() + this.getIgstRate() + this.getSgstRate());
-
 
337
	}
-
 
338
 
335
	public void setPurchase(Purchase purchase) {
339
	public void setPurchase(Purchase purchase) {
336
		this.purchase = purchase;
340
		this.purchase = purchase;
337
	}
341
	}
338
 
342
 
339
	public String getFormattedCreateTimestamp() {
343
	public String getFormattedCreateTimestamp() {