Subversion Repositories SmartDukaan

Rev

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

Rev 10307 Rev 12323
Line 428... Line 428...
428
			UpdateFlipkartPricing updateFlipkartPricing = new UpdateFlipkartPricing(Float.valueOf(sellingPrice),fkItemCode,item,timestamp);
428
			UpdateFlipkartPricing updateFlipkartPricing = new UpdateFlipkartPricing(Float.valueOf(sellingPrice),fkItemCode,item,timestamp);
429
			updateFlipkartPricing.start();
429
			updateFlipkartPricing.start();
430
		}
430
		}
431
		return "flipkart-update-result";
431
		return "flipkart-update-result";
432
	}
432
	}
-
 
433
	
-
 
434
	public void updateForAutoPricing() throws NumberFormatException, CatalogServiceException, TException{
-
 
435
        logger.info("Calling Method to update price at snapdeal for auto pricing");
-
 
436
        Client catalogClient = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient();
-
 
437
        Item item = catalogClient.getItem(Long.valueOf(itemId));
-
 
438
        UpdateFlipkartPricing updateFlipkartPricing = new UpdateFlipkartPricing(Float.valueOf(sellingPrice),fkItemCode,item,System.currentTimeMillis());
-
 
439
        updateFlipkartPricing.start();
-
 
440
    }
-
 
441
 
433
 
442
 
434
 
443
 
435
	public boolean compareParameters(MarketplaceItems mpItem, FlipkartItem flipkartItem, Warehouse warehouse,double weight) throws TException, JSONException, CatalogServiceException{
444
	public boolean compareParameters(MarketplaceItems mpItem, FlipkartItem flipkartItem, Warehouse warehouse,double weight) throws TException, JSONException, CatalogServiceException{
436
		double nlc =getNlcForWarehouse(flipkartItem.getWarehouseId(),flipkartItem.getItem_id());
445
		double nlc =getNlcForWarehouse(flipkartItem.getWarehouseId(),flipkartItem.getItem_id());
437
		double vat = (mpItem.getCurrentSp()/(1+(mpItem.getVat()/100))-(nlc/(1+(mpItem.getVat()/100))))*(mpItem.getVat()/100);
446
		double vat = (mpItem.getCurrentSp()/(1+(mpItem.getVat()/100))-(nlc/(1+(mpItem.getVat()/100))))*(mpItem.getVat()/100);