Subversion Repositories SmartDukaan

Rev

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

Rev 25079 Rev 25080
Line 289... Line 289...
289
									.get(0);
289
									.get(0);
290
							if (inRecord.getCreateTimestamp().isAfter(scheme.getExpireTimestamp())) {
290
							if (inRecord.getCreateTimestamp().isAfter(scheme.getExpireTimestamp())) {
291
								InventoryItem ii = inventoryItemRepository.selectById(inRecord.getInventoryItemId());
291
								InventoryItem ii = inventoryItemRepository.selectById(inRecord.getInventoryItemId());
292
								Purchase purchase = purchaseRepository.selectByIdAndFofoId(ii.getPurchaseId(), ii.getFofoId());
292
								Purchase purchase = purchaseRepository.selectByIdAndFofoId(ii.getPurchaseId(), ii.getFofoId());
293
								System.out.println(String.format("%d\t%s\t%d\t%d\t%s\t%s\t%f\t%f\t%d\t%s",
293
								System.out.println(String.format("%d\t%s\t%d\t%d\t%s\t%s\t%f\t%f\t%d\t%s",
294
										ii.getId(), ii.getSerialNumber(), ii.getId(), schemeInOut.getSchemeId(), scheme.getName(), scheme.getType(),
294
										ii.getId(), ii.getSerialNumber(), ii.getItemId(), schemeInOut.getSchemeId(), scheme.getName(), scheme.getType(),
295
										scheme.getAmount(), schemeInOut.getAmount(), purchase.getId(), inRecord.getCreateTimestamp()));
295
										scheme.getAmount(), schemeInOut.getAmount(), purchase.getId(), inRecord.getCreateTimestamp()));
296
							}
296
							}
297
 
297
 
298
						}
298
						}
299
					}
299
					}
Line 313... Line 313...
313
										LOGGER.info("Order id does not exits - {}", outRecord.getOrderId());
313
										LOGGER.info("Order id does not exits - {}", outRecord.getOrderId());
314
										continue;
314
										continue;
315
									}
315
									}
316
								}
316
								}
317
								System.out.println(String.format("%d\t%s\t%d\t%d\t%s\t%s\t%f\t%f\t%d\t%s",
317
								System.out.println(String.format("%d\t%s\t%d\t%d\t%s\t%s\t%f\t%f\t%d\t%s",
318
										ii.getId(), ii.getSerialNumber(), ii.getId(), schemeInOut.getSchemeId(), scheme.getName(), scheme.getType(),
318
										ii.getId(), ii.getSerialNumber(), ii.getItemId(), schemeInOut.getSchemeId(), scheme.getName(), scheme.getType(),
319
										scheme.getAmount(), schemeInOut.getAmount(), order.getId(), outRecord.getCreateTimestamp()));
319
										scheme.getAmount(), schemeInOut.getAmount(), order.getId(), outRecord.getCreateTimestamp()));
320
								
320
								
321
							}
321
							}
322
 
322
 
323
						}
323
						}