Subversion Repositories SmartDukaan

Rev

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

Rev 7382 Rev 7436
Line 65... Line 65...
65
 
65
 
66
	public String create() {
66
	public String create() {
67
		StorePricing sp = new StorePricing(itemId, recommendedPrice, minPrice, maxPrice, minAdvancePrice, absoluteMinPrice, freebieItemId, bestDealText);
67
		StorePricing sp = new StorePricing(itemId, recommendedPrice, minPrice, maxPrice, minAdvancePrice, absoluteMinPrice, freebieItemId, bestDealText);
68
		try	{
68
		try	{
69
			CatalogClient csc = new CatalogClient();
69
			CatalogClient csc = new CatalogClient();
-
 
70
			CatalogClient cscs = new CatalogClient("catalog_service_server_host_prod", "catalog_service_server_port");
70
			in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= csc.getClient();
71
			in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= csc.getClient();
-
 
72
			in.shop2020.model.v1.catalog.CatalogService.Client catalogClientProd= cscs.getClient();
-
 
73
			
71
			catalogClient.updateStorePricing(sp, allcolors);
74
			catalogClient.updateStorePricing(sp, allcolors);
-
 
75
			catalogClientProd.updateStorePricing(sp, allcolors);
72
			Item item = getItem(itemId);
76
			Item item = getItem(itemId);
73
			if(item.isActiveOnStore() != isActiveonstore()){
77
			if(item.isActiveOnStore() != isActiveonstore()){
74
				item.setActiveOnStore(isActiveonstore());
78
				item.setActiveOnStore(isActiveonstore());
75
				catalogClient.updateItem(item);
79
				catalogClient.updateItem(item);
-
 
80
				catalogClientProd.updateItem(item);
76
			}
81
			}
77
			addActionError("Pricing successfully updated");
82
			addActionError("Pricing successfully updated");
78
		} catch (TException e) {
83
		} catch (TException e) {
79
			logger.error("", e);
84
			logger.error("", e);
80
		} catch (CatalogServiceException e) {
85
		} catch (CatalogServiceException e) {