Subversion Repositories SmartDukaan

Rev

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

Rev 14491 Rev 16411
Line 93... Line 93...
93
 
93
 
94
        return inventoryItemMapper.getNonSerializedInventoryItem(itemNumber, itemId, warehouseId, billingWarehouseId);
94
        return inventoryItemMapper.getNonSerializedInventoryItem(itemNumber, itemId, warehouseId, billingWarehouseId);
95
    }
95
    }
96
 
96
 
97
	public Long getCurrentQuantityForNonSerializedItem(long itemId, long warehouseId, long physicalWarehouseId) {
97
	public Long getCurrentQuantityForNonSerializedItem(long itemId, long warehouseId, long physicalWarehouseId) {
98
		return inventoryItemMapper.getCurrentQuantityForNonSerializedItem(itemId, warehouseId, physicalWarehouseId);
98
		return inventoryItemMapper.getCurrentQuantityForNonSerializedItem(itemId, warehouseId, physicalWarehouseId, 0);
-
 
99
	}
-
 
100
	
-
 
101
	public Long getCurrentQuantityForNonSerializedItemWithGrnId(long itemId, long warehouseId, long physicalWarehouseId, long purchaseId) {
-
 
102
		return inventoryItemMapper.getCurrentQuantityForNonSerializedItem(itemId, warehouseId, physicalWarehouseId, purchaseId);
99
	}
103
	}
100
 
104
 
101
	public void markPurchaseReturnIdForItem(long id, long currentQuantity, long purchaseReturnId) {
105
	public void markPurchaseReturnIdForItem(long id, long currentQuantity, long purchaseReturnId) {
102
		inventoryItemMapper.markPurchaseReturnIdForItem(id, currentQuantity, purchaseReturnId);
106
		inventoryItemMapper.markPurchaseReturnIdForItem(id, currentQuantity, purchaseReturnId);
103
		
107
		
Line 108... Line 112...
108
	}
112
	}
109
 
113
 
110
	public List<InventoryItem> getCurrentNonSerializedItemsByItemId(long itemId, long warehouseId) throws InventoryServiceException, TException {
114
	public List<InventoryItem> getCurrentNonSerializedItemsByItemId(long itemId, long warehouseId) throws InventoryServiceException, TException {
111
		InventoryService.Client inventoryClient = new InventoryClient().getClient();
115
		InventoryService.Client inventoryClient = new InventoryClient().getClient();
112
		Warehouse warehouse = inventoryClient.getWarehouse(warehouseId);
116
		Warehouse warehouse = inventoryClient.getWarehouse(warehouseId);
113
		return inventoryItemMapper.getCurrentNonSerializedItemsByItemId(itemId, warehouseId, warehouse.getBillingWarehouseId());
117
		return inventoryItemMapper.getCurrentNonSerializedItemsByItemId(itemId, warehouseId, warehouse.getBillingWarehouseId(),0);
-
 
118
	}
-
 
119
	
-
 
120
	public List<InventoryItem> getCurrentNonSerializedItemsByItemIdWithGrnId(long itemId, long warehouseId, long purchaseId) throws InventoryServiceException, TException {
-
 
121
		InventoryService.Client inventoryClient = new InventoryClient().getClient();
-
 
122
		Warehouse warehouse = inventoryClient.getWarehouse(warehouseId);
-
 
123
		return inventoryItemMapper.getCurrentNonSerializedItemsByItemId(itemId, warehouseId, warehouse.getBillingWarehouseId(),purchaseId);
114
	}
124
	}
115
	
125
	
116
	public List<InventoryItem> getNonSerializedItemsForBadInventory(long itemId, long currentWarehouseId, long physicalWarehouseId){
126
	public List<InventoryItem> getNonSerializedItemsForBadInventory(long itemId, long currentWarehouseId, long physicalWarehouseId){
117
		return inventoryItemMapper.getNonSerializedItemsForBadInventory(itemId, currentWarehouseId, physicalWarehouseId);
127
		return inventoryItemMapper.getNonSerializedItemsForBadInventory(itemId, currentWarehouseId, physicalWarehouseId);
118
	}
128
	}