Subversion Repositories SmartDukaan

Rev

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

Rev 7574 Rev 7613
Line 1... Line 1...
1
/**
1
/**
2
 * 
2
 * 
3
 */
3
 */
4
package in.shop2020.warehouse.handler;
4
package in.shop2020.warehouse.handler;
5
 
5
 
-
 
6
import in.shop2020.warehouse.InTransitInventory;
6
import in.shop2020.warehouse.ScanType;
7
import in.shop2020.warehouse.ScanType;
7
import in.shop2020.warehouse.domain.InventoryItem;
8
import in.shop2020.warehouse.domain.InventoryItem;
8
import in.shop2020.warehouse.persistence.InventoryItemMapper;
9
import in.shop2020.warehouse.persistence.InventoryItemMapper;
9
 
10
 
-
 
11
import java.util.ArrayList;
10
import java.util.List;
12
import java.util.List;
11
import java.util.Map;
13
import java.util.Map;
12
 
14
 
13
import org.springframework.beans.factory.annotation.Autowired;
15
import org.springframework.beans.factory.annotation.Autowired;
14
import org.springframework.stereotype.Service;
16
import org.springframework.stereotype.Service;
Line 132... Line 134...
132
	public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(
134
	public long getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(
133
			long itemId, long physicalWarehouseId) {
135
			long itemId, long physicalWarehouseId) {
134
		return inventoryItemMapper.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(
136
		return inventoryItemMapper.getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(
135
				itemId, physicalWarehouseId);
137
				itemId, physicalWarehouseId);
136
	}
138
	}
-
 
139
 
-
 
140
	public List<InTransitInventory> getInTransitInventory(long originWarehouseId) {
-
 
141
		List<InTransitInventory> t_InTransitInventories = new ArrayList<InTransitInventory>();
-
 
142
		for(in.shop2020.warehouse.domain.InTransitInventory intransitInventory :inventoryItemMapper.getInTransitInventory(originWarehouseId)) {
-
 
143
			t_InTransitInventories.add(intransitInventory.toThriftObject());
-
 
144
		}
-
 
145
		return t_InTransitInventories;
-
 
146
	}
137
	
147
	
138
}
148
}