Subversion Repositories SmartDukaan

Rev

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

Rev 8465 Rev 8468
Line 320... Line 320...
320
			e.printStackTrace();
320
			e.printStackTrace();
321
		}
321
		}
322
 
322
 
323
	}
323
	}
324
 
324
 
325
 
-
 
326
 
-
 
327
	public static Double getPercentageDifferenceFromMinimumPrice(AmazonFbaSalesSnapshot snapshot){
325
	public static Double getPercentageDifferenceFromMinimumPrice(AmazonFbaSalesSnapshot snapshot){
328
		Double minPrice = getMinimumSalePriceOnAmazonFBA(snapshot);
326
		Double minPrice = getMinimumSalePriceOnAmazonFBA(snapshot);
329
		return (snapshot.getSalePrice() - minPrice)/snapshot.getSalePrice();
327
		return (((minPrice - snapshot.getOurPrice())/snapshot.getOurPrice())*100);
330
 
328
 
331
	}
329
	}
332
 
330
 
333
	public static Double getMinimumSalePriceOnAmazonFBA(AmazonFbaSalesSnapshot snapshot){
331
	public static Double getMinimumSalePriceOnAmazonFBA(AmazonFbaSalesSnapshot snapshot){
334
		if(snapshot.getMinFbaPrice() > snapshot.getMinMfnPrice()){
332
		if(snapshot.getMinFbaPrice() > snapshot.getMinMfnPrice()){