Subversion Repositories SmartDukaan

Rev

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

Rev 12847 Rev 12848
Line 130... Line 130...
130
						inventoryAvailabilityMap.put(availability.getItemId(), availability);
130
						inventoryAvailabilityMap.put(availability.getItemId(), availability);
131
					}
131
					}
132
				}
132
				}
133
			}
133
			}
134
			
134
			
-
 
135
			
-
 
136
			
135
			for(Long itemId : inventoryAvailabilityMap.keySet()){
137
			for(Long itemId : inventoryAvailabilityMap.keySet()){
136
				
138
				
-
 
139
				if(itemId != 2287 ){
-
 
140
					continue;
137
				
141
				}
138
				//System.out.println("Item Id Key : "+ itemId);
142
				//System.out.println("Item Id Key : "+ itemId);
139
				InventoryAvailability stockAvailability = inventoryAvailabilityMap.get(itemId);
143
				InventoryAvailability stockAvailability = inventoryAvailabilityMap.get(itemId);
140
				long stockQuantity = stockAvailability.getQuantity();
144
				long stockQuantity = stockAvailability.getQuantity();
141
				
145
				
142
				logger.info("Item Id Key : "+ itemId + " Stock Quantity : "+ stockAvailability.getQuantity());
146
				logger.info("Item Id Key : "+ itemId + " Stock Quantity : "+ stockAvailability.getQuantity());
143
				
-
 
-
 
147
				System.out.println("Item Id Key : "+ itemId + " Stock Quantity : "+ stockAvailability.getQuantity());
144
				if(!client.isAlive()){
148
				if(!client.isAlive()){
145
					client = whClient.getClient();
149
					client = whClient.getClient();
146
				}
150
				}
147
				
151
				
148
				List<InvAgeConsiderItems> invAgeConsiderItems = client.getInventoryAgeConsideredItems(itemId);
152
				List<InvAgeConsiderItems> invAgeConsiderItems = client.getInventoryAgeConsideredItems(itemId);
149
				
153
				
-
 
154
				
150
				long freshCount = 0;
155
				long freshCount = 0;
151
				long oneToTwoCount = 0;
156
				long oneToTwoCount = 0;
152
				long twoToThreeCount = 0;
157
				long twoToThreeCount = 0;
153
				long threeToFourCount = 0;
158
				long threeToFourCount = 0;
154
				long fourPlusCount = 0;
159
				long fourPlusCount = 0;
Line 263... Line 268...
263
				inventAge.setOnePlusCount(onePlusCount);
268
				inventAge.setOnePlusCount(onePlusCount);
264
				inventAge.setZeroPlusCost(zeroPlusCost);
269
				inventAge.setZeroPlusCost(zeroPlusCost);
265
				inventAge.setOnePlusCost(onePlusCost);
270
				inventAge.setOnePlusCost(onePlusCost);
266
				inventAge.setCategory(category);
271
				inventAge.setCategory(category);
267
				inventoryAge.add(inventAge);
272
				inventoryAge.add(inventAge);
-
 
273
				
-
 
274
				System.out.println(freshCount +" "+ oneToTwoCount +" "+ twoToThreeCount+ " "+ threeToFourCount);
-
 
275
				
-
 
276
				break;
268
			}
277
			}
269
			
278
			
270
			
279
			
-
 
280
			
271
		}
281
		}
272
		catch (Exception e) {
282
		catch (Exception e) {
273
			e.printStackTrace();
283
			e.printStackTrace();
274
		}
284
		}
275
		return inventoryAge;
285
		return inventoryAge;
Line 731... Line 741...
731
		catch (Exception e) {
741
		catch (Exception e) {
732
		}
742
		}
733
 
743
 
734
	}
744
	}
735
 
745
 
736
	/*public static void main(String[] args) throws Exception{
746
	public static void main(String[] args) throws Exception{
737
 
-
 
-
 
747
		List<InventoryAge> inventoryAge = new InventoryAgeController().getSorplInventoryAge();
738
	}*/
748
	}
739
}
749
}