Subversion Repositories SmartDukaan

Rev

Rev 23090 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23090 Rev 23091
Line 235... Line 235...
235
				addActionError("Few IMEIs are missing");
235
				addActionError("Few IMEIs are missing");
236
				for (String imei : imeisSet) {
236
				for (String imei : imeisSet) {
237
					if(!inventoryItemMap.containsKey(imei)) {
237
					if(!inventoryItemMap.containsKey(imei)) {
238
						addActionError(imei);
238
						addActionError(imei);
239
					}
239
					}
-
 
240
					return INDEX;
240
				}
241
				}
241
			}
242
			}
242
			for (InventoryItem inventoryItem : inventoryItems) {
243
			for (InventoryItem inventoryItem : inventoryItems) {
243
				if (inventoryItem.getItemId() != this.getItemId()) {
244
				if (inventoryItem.getItemId() != this.getItemId()) {
244
					addActionError("IMEI " + inventoryItem.getSerialNumber() + " belongs to other item - " + inventoryItem.getItemId());
245
					addActionError("IMEI " + inventoryItem.getSerialNumber() + " belongs to other item - " + inventoryItem.getItemId());
Line 247... Line 248...
247
			}
248
			}
248
			
249
			
249
			tsc = new TransactionClient();
250
			tsc = new TransactionClient();
250
			tClient = tsc.getClient();
251
			tClient = tsc.getClient();
251
			tClient.addPriceDrop(itemId, imeisList, this.priceDrop, affectedDateLong);
252
			tClient.addPriceDrop(itemId, imeisList, this.priceDrop, affectedDateLong);
-
 
253
			addActionMessage("Items Added Successfully");
252
			
254
			
253
		} else {
255
		} else {
254
			addActionError("Serial numbers should not be empty");
256
			addActionError("Serial numbers should not be empty");
255
		}
257
		}
256
		
258
		
257
		
259
		
258
		
260
		
259
		addActionMessage("Items Added Successfully");
-
 
260
		return INDEX;
261
		return INDEX;
261
	}
262
	}
262
 
263
 
263
	public void setClosingDate(String closingDate) {
264
	public void setClosingDate(String closingDate) {
264
		this.closingDate = closingDate;
265
		this.closingDate = closingDate;