Subversion Repositories SmartDukaan

Rev

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

Rev 10500 Rev 10501
Line 832... Line 832...
832
					}
832
					}
833
					snapdealInventoryItemList.add(snapdealInventoryItem);
833
					snapdealInventoryItemList.add(snapdealInventoryItem);
834
				}
834
				}
835
				System.out.println("Before incremental check");
835
				System.out.println("Before incremental check");
836
				System.out.println("Before incremental available "+inventory.getAvailableInventory());
836
				System.out.println("Before incremental available "+inventory.getAvailableInventory());
837
				sent_inventory = 0;
-
 
838
				System.out.println("To send "+sent_inventory);
837
				System.out.println("To send "+sent_inventory);
839
				if(inventory.getAvailableInventory()!= sent_inventory){
838
				if(inventory.getAvailableInventory()!= sent_inventory){
840
					System.out.println("Incremental check success");
839
					System.out.println("Incremental check success");
841
					if(!PANEL){
840
					if(!PANEL){
842
						row.getCell((short) 0).setCellValue(inventory.getSupc());
841
						row.getCell((short) 0).setCellValue(inventory.getSupc());
Line 963... Line 962...
963
			}
962
			}
964
			int retry = 24;
963
			int retry = 24;
965
			boolean feedsuccess =false;
964
			boolean feedsuccess =false;
966
			while(retry>0){
965
			while(retry>0){
967
				try {
966
				try {
968
					Thread.sleep(5*60*1000);
967
					Thread.sleep(1*60*1000);
969
				} catch (InterruptedException e) {
968
				} catch (InterruptedException e) {
970
					e.printStackTrace();
969
					e.printStackTrace();
971
				}
970
				}
972
				try {
971
				try {
973
					lastUpdatedInventoryTime = lastSentInventoryTime; 
972
					lastUpdatedInventoryTime = lastSentInventoryTime;