Subversion Repositories SmartDukaan

Rev

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

Rev 12449 Rev 12453
Line 284... Line 284...
284
        if (amazonlisted.isAutoIncrement()!=Boolean.valueOf(autoIncrement)){
284
        if (amazonlisted.isAutoIncrement()!=Boolean.valueOf(autoIncrement)){
285
            amazonlisted.setAutoIncrement(Boolean.valueOf(autoIncrement));
285
            amazonlisted.setAutoIncrement(Boolean.valueOf(autoIncrement));
286
            commit=true;
286
            commit=true;
287
        }
287
        }
288
        
288
        
289
        if (amazonlisted.isAutoFavourite()!=Boolean.valueOf(autoFavourite)){
-
 
290
            amazonlisted.setAutoFavourite(Boolean.valueOf(autoFavourite));
-
 
291
            commit=true;
-
 
292
        }
-
 
293
        
-
 
294
        if (amazonlisted.isManualFavourite()!=Boolean.valueOf(manualFavourite)){
289
        if (amazonlisted.isManualFavourite()!=Boolean.valueOf(manualFavourite)){
295
            amazonlisted.setManualFavourite(Boolean.valueOf(manualFavourite));
290
            amazonlisted.setManualFavourite(Boolean.valueOf(manualFavourite));
296
            commit=true;
291
            commit=true;
297
        }
292
        }
298
 
293
 
Line 458... Line 453...
458
        catch (Exception e){
453
        catch (Exception e){
459
            return null;
454
            return null;
460
        }
455
        }
461
    }
456
    }
462
 
457
 
463
//    public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
458
    public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
464
//        LogisticsClient logisticsClient = new LogisticsClient();
459
        LogisticsClient logisticsClient = new LogisticsClient();
465
//        return logisticsClient.getClient().getLogisticsInfo("110001", Long.valueOf(itemId), DeliveryType.COD, PickUpType.COURIER).getShippingTime();
460
        return logisticsClient.getClient().getLogisticsInfo("110001", Long.valueOf(itemId), DeliveryType.COD, PickUpType.COURIER).getShippingTime();
466
//    }
-
 
467
    
-
 
468
      public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
-
 
469
          return 0l;
-
 
470
    }
461
    }
471
    
462
    
-
 
463
//      public Long getTimetoShip(String itemId) throws LogisticsServiceException, TException{
-
 
464
//          return 0l;
-
 
465
//    }
-
 
466
    
472
    
467
    
473
    public double getWanlcForItem(String itemId){
468
    public double getWanlcForItem(String itemId){
474
        InventoryClient inventoryServiceClient;
469
        InventoryClient inventoryServiceClient;
475
        try {
470
        try {
476
            inventoryServiceClient = new InventoryClient();
471
            inventoryServiceClient = new InventoryClient();