Subversion Repositories SmartDukaan

Rev

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

Rev 26550 Rev 26568
Line 474... Line 474...
474
	// We are maintaining price drop after grn
474
	// We are maintaining price drop after grn
475
	private float getAmount(InventoryItem inventoryItem, Scheme scheme) {
475
	private float getAmount(InventoryItem inventoryItem, Scheme scheme) {
476
		float amount = 0;
476
		float amount = 0;
477
		float dpForCalc = 0;
477
		float dpForCalc = 0;
478
		float taxableSellingPrice = 0;
478
		float taxableSellingPrice = 0;
479
		float totalTaxRate = inventoryItem.getIgstRate() + inventoryItem.getSgstRate() + inventoryItem.getCgstRate();
479
		//float totalTaxRate = inventoryItem.getIgstRate() + inventoryItem.getSgstRate() + inventoryItem.getCgstRate();
-
 
480
		//Hardcoding it to 18%
-
 
481
		float totalTaxRate = 18f;
-
 
482
		//float totalTaxRate = inventoryItem.getIgstRate() + inventoryItem.getSgstRate() + inventoryItem.getCgstRate();
480
		if (scheme.getAmountType() == AmountType.PERCENTAGE) {
483
		if (scheme.getAmountType() == AmountType.PERCENTAGE) {
481
			if (scheme.getType().equals(SchemeType.IN)) {
484
			if (scheme.getType().equals(SchemeType.IN)) {
482
				dpForCalc = inventoryItem.getUnitPrice() - inventoryItem.getPriceDropAmount();
485
				dpForCalc = inventoryItem.getUnitPrice() - inventoryItem.getPriceDropAmount();
483
			} else {
486
			} else {
484
				try {
487
				try {