Subversion Repositories SmartDukaan

Rev

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

Rev 4649 Rev 4725
Line 412... Line 412...
412
        }
412
        }
413
        return itemId;
413
        return itemId;
414
    }
414
    }
415
 
415
 
416
    @Override
416
    @Override
417
    public long checkSimilarItem(String productGroup, String brand, String modelNumber, String color) {
417
    public long checkSimilarItem(String brand, String modelNumber, String modelName, String color) {
418
 
418
 
419
        try {
419
        try {
420
            CatalogClient catalogServiceClient = new CatalogClient();
420
            CatalogClient catalogServiceClient = new CatalogClient();
421
            InventoryService.Client catalogClient = catalogServiceClient.getClient();
421
            InventoryService.Client catalogClient = catalogServiceClient.getClient();
422
            return catalogClient.checkSimilarItem(productGroup, brand, modelNumber, color);
422
            return catalogClient.checkSimilarItem(brand, modelNumber, modelName, color);
423
        } catch (Exception e) {
423
        } catch (Exception e) {
424
            logger.error("Error while checking for a similar item: ", e);
424
            logger.error("Error while checking for a similar item: ", e);
425
        }
425
        }
426
        return 0;
426
        return 0;
427
    }
427
    }