Subversion Repositories SmartDukaan

Rev

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

Rev 7306 Rev 7308
Line 42... Line 42...
42
	private long itemId;
42
	private long itemId;
43
	private double recommendedPrice;
43
	private double recommendedPrice;
44
	private double minPrice;
44
	private double minPrice;
45
	private double maxPrice;
45
	private double maxPrice;
46
	private double minAdvancePrice;
46
	private double minAdvancePrice;
-
 
47
	private long freebieItemId;
-
 
48
	private String bestDealText;
47
	private boolean activeonstore;
49
	private boolean activeonstore;
48
	
50
	
49
	public String index()	{
51
	public String index()	{
50
		return "index";
52
		return "index";
51
	}
53
	}
Line 53... Line 55...
53
	public String show()	{
55
	public String show()	{
54
		return "index";
56
		return "index";
55
	}
57
	}
56
 
58
 
57
	public String create() {
59
	public String create() {
58
		StorePricing sp = new StorePricing(itemId, recommendedPrice, minPrice, maxPrice, minAdvancePrice);
60
		StorePricing sp = new StorePricing(itemId, recommendedPrice, minPrice, maxPrice, minAdvancePrice, freebieItemId, bestDealText);
59
		try	{
61
		try	{
60
			CatalogClient csc = new CatalogClient();
62
			CatalogClient csc = new CatalogClient();
61
			in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= csc.getClient();
63
			in.shop2020.model.v1.catalog.CatalogService.Client catalogClient= csc.getClient();
62
			catalogClient.updateStorePricing(sp);
64
			catalogClient.updateStorePricing(sp);
63
			Item item = getItem(itemId);
65
			Item item = getItem(itemId);
Line 210... Line 212...
210
 
212
 
211
	public boolean isActiveonstore() {
213
	public boolean isActiveonstore() {
212
		return activeonstore;
214
		return activeonstore;
213
	}
215
	}
214
 
216
 
-
 
217
	public void setFreebieItemId(long freebieItemId) {
-
 
218
		this.freebieItemId = freebieItemId;
-
 
219
	}
-
 
220
 
-
 
221
	public long getFreebieItemId() {
-
 
222
		return freebieItemId;
-
 
223
	}
-
 
224
 
-
 
225
	public void setBestDealText(String bestDealText) {
-
 
226
		this.bestDealText = bestDealText;
-
 
227
	}
-
 
228
 
-
 
229
	public String getBestDealText() {
-
 
230
		return bestDealText;
-
 
231
	}
-
 
232
 
215
}
233
}
216
234