Subversion Repositories SmartDukaan

Rev

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

Rev 12831 Rev 12833
Line 144... Line 144...
144
        for (int i = 0, size = jsonArray.length(); i < size; i++){
144
        for (int i = 0, size = jsonArray.length(); i < size; i++){
145
            JSONObject x = jsonArray.getJSONObject(i);
145
            JSONObject x = jsonArray.getJSONObject(i);
146
            listingPrice = x.get("listingPrice").toString();
146
            listingPrice = x.get("listingPrice").toString();
147
        }
147
        }
148
        logger.info("New listing price "+listingPrice);
148
        logger.info("New listing price "+listingPrice);
149
        if (listingPrice.equalsIgnoreCase(sellingPrice)){
149
        if (Double.valueOf(sellingPrice)==Double.valueOf(listingPrice)){
150
            logger.info("Returning true");
150
            logger.info("Returning true");
151
            return true;
151
            return true;
152
        }
152
        }
153
        return false;
153
        return false;
154
    }
154
    }