Subversion Repositories SmartDukaan

Rev

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

Rev 3872 Rev 4024
Line 55... Line 55...
55
	10:WarehouseLocation logisticsLocation,
55
	10:WarehouseLocation logisticsLocation,
56
	11:string vendor,
56
	11:string vendor,
57
	12:i64 vendorId,
57
	12:i64 vendorId,
58
	13:BillingType billingType
58
	13:BillingType billingType
59
}
59
}
-
 
60
 
60
/* */
61
/* */
61
struct ItemInventory{
62
struct ItemInventory{
62
	1:i64 id,
63
	1:i64 id,
63
	2:map<i64,i64> availability
64
	2:map<i64,i64> availability
64
}
65
}
Line 150... Line 151...
150
	2:i64 itemId,
151
	2:i64 itemId,
151
	3:double mrp,
152
	3:double mrp,
152
	4:double sellingPrice
153
	4:double sellingPrice
153
}
154
}
154
 
155
 
-
 
156
struct AvailableAndReservedStock {
-
 
157
	1:i64 itemId,
-
 
158
	2:i64 available,
-
 
159
	3:i64 reserved,
-
 
160
	4:i64 minimumStock
-
 
161
}
-
 
162
 
155
exception InventoryServiceException{
163
exception InventoryServiceException{
156
	1:i64 id,
164
	1:i64 id,
157
	2:string message
165
	2:string message
158
}
166
}
159
 
167
 
Line 412... Line 420...
412
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
420
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
413
	
421
	
414
	/**
422
	/**
415
	Gets the count of search results for the given search terms so that the user can go through all the pages.
423
	Gets the count of search results for the given search terms so that the user can go through all the pages.
416
	*/
424
	*/
417
	i32 getSearchResultCount(1:list<string> searchTerms)
425
	i32 getSearchResultCount(1:list<string> searchTerms),
-
 
426
	
-
 
427
	/**
-
 
428
	Returns a list of inventory stock for items for which there are pending orders.
-
 
429
	*/
-
 
430
	list<AvailableAndReservedStock> getPendingOrdersInventory()
418
}
431
}
419
 
432