Subversion Repositories SmartDukaan

Rev

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

Rev 28117 Rev 28124
Line 521... Line 521...
521
			pc.setNetPrice(netprice);
521
			pc.setNetPrice(netprice);
522
			int mopdpdiff = pc.getMop() - pc.getSellingPrice();
522
			int mopdpdiff = pc.getMop() - pc.getSellingPrice();
523
			pc.setMopdp(mopdpdiff);
523
			pc.setMopdp(mopdpdiff);
524
			pc.setNetPrice2((int) pc.getNetPrice() - pc.getMopdp());
524
			pc.setNetPrice2((int) pc.getNetPrice() - pc.getMopdp());
525
			long totalProfit = totalScheme + mopdpdiff;
525
			long totalProfit = totalScheme + mopdpdiff;
-
 
526
			pc.setTotalProfit((int) totalProfit);
526
			double rouoff = totalProfit / (pc.getSellingPrice() / 1.18) * 100;
527
			double rouoff = totalProfit / (pc.getSellingPrice() / 1.18) * 100;
527
			double roundOff = Math.round(rouoff * 100.0) / 100.0;
528
			double roundOff = Math.round(rouoff * 100.0) / 100.0;
528
			pc.setNetMargin(roundOff);
529
			pc.setNetMargin(roundOff);
529
 
530
 
530
		}
531
		}