Subversion Repositories SmartDukaan

Rev

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

Rev 22561 Rev 22708
Line 64... Line 64...
64
 
64
 
65
	@Value("${python.api.host}")
65
	@Value("${python.api.host}")
66
	private String host;
66
	private String host;
67
	@Value("${python.api.port}")
67
	@Value("${python.api.port}")
68
	private int port;
68
	private int port;
-
 
69
	
-
 
70
	@Value("${fofo.warehousIds}")
-
 
71
	private int[] warehouseIds; 
69
 
72
 
70
	@Autowired
73
	@Autowired
71
	private PricingService pricingService;
74
	private PricingService pricingService;
72
	
75
	
73
	@Autowired
76
	@Autowired
Line 201... Line 204...
201
							fdi.setSellingPrice((float)childItem.getDouble("sellingPrice_f"));
204
							fdi.setSellingPrice((float)childItem.getDouble("sellingPrice_f"));
202
							fdi.setMop((float)childItem.getDouble("mop_f"));
205
							fdi.setMop((float)childItem.getDouble("mop_f"));
203
							fdi.setColor(childItem.has("color_s")?childItem.getString("color_s"): "");
206
							fdi.setColor(childItem.has("color_s")?childItem.getString("color_s"): "");
204
							fdi.setTagId(childItem.getInt("tagId_i"));
207
							fdi.setTagId(childItem.getInt("tagId_i"));
205
							fdi.setItem_id(itemId);
208
							fdi.setItem_id(itemId);
206
							fdi.setAvailability(inventoryService.getCachedItemAvailabilityCacheByItemId(itemId).getTotalAvailability());
209
							fdi.setAvailability(inventoryService.getCachedAvailabilityByItemIdWarehouseIds(itemId, warehouseIds));
207
							fdi.setQuantityStep(1);
210
							fdi.setQuantityStep(1);
208
							fdi.setMinBuyQuantity(1);
211
							fdi.setMinBuyQuantity(1);
209
							fdi.setMaxQuantity(Math.min(fdi.getAvailability(), 100));
212
							fdi.setMaxQuantity(Math.min(fdi.getAvailability(), 100));
210
							fofoAvailabilityInfoMap.put(itemId, fdi);
213
							fofoAvailabilityInfoMap.put(itemId, fdi);
211
					}
214
					}