Subversion Repositories SmartDukaan

Rev

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

Rev 26408 Rev 26412
Line 782... Line 782...
782
		}
782
		}
783
 
783
 
784
	}
784
	}
785
 
785
 
786
	public void fixDupGrns() throws Exception {
786
	public void fixDupGrns() throws Exception {
787
		List<Integer> duplicatePurchaseIds = Arrays.asList(11655, 13615, 13616, 13617, 13625, 13626, 8227);
787
		List<Integer> duplicatePurchaseIds = Arrays.asList(14984);
788
		for (int duplicatePurchaseId : duplicatePurchaseIds) {
788
		for (int duplicatePurchaseId : duplicatePurchaseIds) {
789
			Purchase purchase = purchaseRepository.selectById(duplicatePurchaseId);
789
			Purchase purchase = purchaseRepository.selectById(duplicatePurchaseId);
790
			List<InventoryItem> inventoryItems = inventoryItemRepository.selectByPurchaseId(duplicatePurchaseId);
790
			List<InventoryItem> inventoryItems = inventoryItemRepository.selectByPurchaseId(duplicatePurchaseId);
791
			if (inventoryItems.size() == 0) {
791
			if (inventoryItems.size() == 0) {
792
				LOGGER.info("Could not find InventoryItems for {}", duplicatePurchaseId);
792
				LOGGER.info("Could not find InventoryItems for {}", duplicatePurchaseId);