Subversion Repositories SmartDukaan

Rev

Rev 21617 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2820 chandransh 1
namespace java in.shop2020.warehouse
2
namespace py shop2020.thriftpy.warehouse
3
 
3374 rajveer 4
include "GenericService.thrift"
5
 
5185 mandeep.dh 6
enum ScanType {
7
    PURCHASE = 0,   // Scan-in at the time of purchase
8
    SALE = 1,       // Scan-out for sale
9
    SALE_RET = 2,   // Scan-in when an item is returned undelivered
10
    DOA_IN = 3,     // Scan-in when an item is returned by the customer with the DOA certificate
11
    DOA_OUT = 4,     // Scan-out to return an item to the supplier
12
    PURCHASE_RETURN = 5, // Scan-out to return an item to the supplier (a Non-DOA case)
13
    SALE_RET_UNUSABLE = 6,
14
    LOST_IN_TRANSIT = 7,
6548 amar.kumar 15
    DOA_REPLACED = 8,
7185 amit.gupta 16
    LOST_IN_WAREHOUSE = 9,
17
    MARKED_USED	= 10,
18
  	MARKED_BAD = 11,
19
  	MARKED_GOOD = 12;
7410 amar.kumar 20
  	WAREHOUSE_TRANSFER_IN = 13;
21
  	WAREHOUSE_TRANSFER_OUT = 14;
8565 amar.kumar 22
  	BAD_SALE = 15;
10308 amar.kumar 23
  	DOA_REJECTED = 16;
10489 amar.kumar 24
  	DOA_CLOSED_BY_CREDIT_NOTE = 17;
10864 manish.sha 25
  	BAD_PURCHASE_RETURN = 18;
14646 manish.sha 26
  	LOST_IN_WAREHOUSE_BAD = 19;
18128 manish.sha 27
  	EMPTY_PRODUCT_RECEIVED = 20;
28
  	WRONG_PRODUCT_RECEIVED = 21;
5185 mandeep.dh 29
}
30
 
7410 amar.kumar 31
enum TransferLotStatus {
32
	IN_TRANSIT = 1,
33
	PARTIAL_TRANSFER = 2,
34
	TRANSFER_COMPLETE = 3
35
}
36
 
37
enum TransferType {
38
	OURS_OURS = 1,
39
	OURS_THIRDPARTY = 2
40
}
41
 
4496 mandeep.dh 42
struct InventoryItem {
5185 mandeep.dh 43
    // primary fields
4496 mandeep.dh 44
    1:i64 id,
45
    2:i64 itemId,
46
    3:string itemNumber,
47
    4:string serialNumber,
48
    5:i64 initialQuantity,
49
    6:i64 currentQuantity,
4555 mandeep.dh 50
    7:i64 purchaseId,
6467 amar.kumar 51
    8:i64 purchaseReturnId,
7410 amar.kumar 52
    9:i64 physicalWarehouseId,
53
    10:TransferLotStatus transferStatus,
4555 mandeep.dh 54
    // derived fields for  efficient lookups
7410 amar.kumar 55
    11:i64 supplierId,
56
    12:double unitPrice,
57
    13:i64 currentWarehouseId,
7672 rajveer 58
    14:ScanType lastScanType,
21617 amit.gupta 59
    15:double nlc,
60
    16:string serialNumber2,
61
    17:i64 firstScanned,
62
    18:i64 activated,
63
    19:i64 created
2820 chandransh 64
}
65
 
4496 mandeep.dh 66
struct Scan {
67
    1:i64 id,
68
    2:i64 inventoryItemId,
69
    3:optional i64 quantity, // ignored in case of serialized items
7410 amar.kumar 70
    4:optional i64 orderId, // The order that was fulfilled with this scan!
4496 mandeep.dh 71
    5:i64 warehouseId,
72
    6:ScanType type,
7190 amar.kumar 73
    7:i64 scannedAt,
7410 amar.kumar 74
    8:i64 transferLotId,
75
    9:string remarks
2820 chandransh 76
}
77
 
5372 mandeep.dh 78
struct DetailedPurchaseScan {
79
    1:i64 purchaseOrderId,
80
    2:i64 poCreatedAt,
81
    3:string supplierName,
82
    4:string invoiceNumbers,
6494 amar.kumar 83
    5:string receivedBy,
84
    6:i64 itemId,
85
    7:string brand,
86
    8:string modelName,
87
    9:string modelNumber,
88
   10:string color,
89
   11:double unitPrice,
90
   12:i64 quantity,
91
   13:i64 purchaseId,
7672 rajveer 92
   14:i64 purchasedAt,
8580 amar.kumar 93
   15:double nlc,
9433 amar.kumar 94
   16:i64 warehouseId,
11219 manish.sha 95
   17:i64 taxType,
12620 amit.gupta 96
   18:i64 invoiceDate,
12800 manish.sha 97
   19:double mrp,
23400 amit.gupta 98
   20:string purchaseComments,
99
   21:double sgstRate,
100
   22:double cgstRate,
101
   23:double igstRate
5372 mandeep.dh 102
}
103
 
5496 mandeep.dh 104
struct InvoiceScan {
105
    1:string invoiceNumber,
106
    2:i64 numItems,
107
    3:string supplierName,
108
    4:i64 date,
109
    5:i64 scannedQuantity
110
}
111
 
7613 amar.kumar 112
struct InTransitInventory {
113
	1:i64 itemId,
10864 manish.sha 114
	2:string brand,
115
	3:string modelName,
116
	4:string modelNumber,
117
	5:string color,
118
	6:i64 originWarehouseId,
119
	7:i64 destinationWarehouseId,
120
	8:i64 quantity,
121
	9:i64 transferDate,
7613 amar.kumar 122
}
123
 
6548 amar.kumar 124
struct InventoryAvailability{
125
	1:i64 itemId,
126
	2:string brand,
127
	3:string modelName,
128
	4:string modelNumber,
129
	5:string color,
130
	6:i64 quantity
131
}
132
 
6762 amar.kumar 133
struct InventoryMovement{
134
	1:i64 itemId,
135
	2:string brand,
136
	3:string modelName,
137
	4:string modelNumber,
138
	5:string color,
139
	6:ScanType type
140
	7:i64 quantity
141
}
142
 
5711 mandeep.dh 143
struct InventoryAge {
144
    1:i64 itemId,
145
    2:string brand,
146
    3:string modelName,
147
    4:string modelNumber,
148
    5:string color,
149
    6:i64 freshCount,
150
    7:i64 oneToTwoCount,
151
    8:i64 TwoToThreeCount,
152
    9:i64 ThreeToFourCount,
5768 mandeep.dh 153
   10:i64 FourPlusCount,
8626 amar.kumar 154
   11:i64 threeMonthPlusCount,
155
   12:i64 sixMonthPlusCount,
11219 manish.sha 156
   13:i64 zeroToThreeMonthCount,
157
   14:i64 threeToSixMonthCount,
158
   15:i64 sixToTwelveMonthCount,
159
   16:i64 twelveMonthsPlusCount,
160
   17:i64 ZeroPlusCount,
161
   18:i64 OnePlusCount,
162
   19:i64 ZeroPlusCost,
163
   20:i64 OnePlusCost,
164
   21:string category
5711 mandeep.dh 165
}
166
 
10689 manish.sha 167
struct AmazonTransferredSkuDetail{
168
	1:i64 itemId,
169
	2:i64 purchaseId,
170
	3:i64 purchaseDate,
171
	4:i64 quantity,
172
	5:double unitPrice
12357 manish.sha 173
	6:double nlc
174
	7:string brand,
175
    8:string modelName,
176
    9:string modelNumber,
177
    10:string category,
178
    11:string color,
179
    12:string taxType
10689 manish.sha 180
}
181
 
7410 amar.kumar 182
struct PossibleWarehouseMovement {
183
	1:i64 fromWarehouseId,
184
	2:i64 toWarehouseId
185
}
186
 
187
struct TransferLot {
188
	1:i64 id,
189
	2:i64 originWarehouseId,
190
	3:i64 destinationWarehouseId,
191
	4:TransferLotStatus status,
192
	5:i64 transferDate,
193
	6:TransferType type,
194
	7:string transitCompletionReferenceNumber,
195
	8:i64 referenceUpdationDate
196
	9:string remarks,
15045 manish.sha 197
	10:i64 shipmentReference
7410 amar.kumar 198
}
199
 
15045 manish.sha 200
struct RemovalStockShipmentReference {
201
	1:i64 id,
202
	2:string shipmentReference,
203
	3:i64 createdOn,
204
	4:string source,
205
	5:i64 inventoryType,
206
	6:i64 quantity,
207
	7:i64 unfulfilQuantity,
208
	8:bool completed
209
}
210
 
12800 manish.sha 211
struct InvAgeConsiderItems {
212
    1:i64 id,
213
    2:i64 itemId,
214
    3:i64 currentQuantity,
215
    4:i64 purchaseId,
216
    5:double age,
217
    6:string category,
218
    7:i64 cost
219
}
220
 
14491 manish.sha 221
struct DoaOutInventoryItem {
222
	1:i64 id
223
	2:i64 warehouseId,
224
	3:string warehouseName,
225
	4:i64 itemId,
226
	5:string product,
227
	6:string serialNumber,
228
	7:string itemNumber,
229
	8:string purchaseOrder
14821 manish.sha 230
	9:i64 doaOutTimeStamp,
231
	10:double transferPrice,
232
	11:double nlcPrice
14491 manish.sha 233
}
234
 
16264 manish.sha 235
struct TransferInvoiceScan {
236
    1:string shipmentReference,
237
    2:i64 transferLotId,
238
    3:string source,
239
    4:i64 quantity,
240
    5:string inventoryType,
241
    6:i64 date,
242
    7:i64 scannedQuantity
243
}
244
 
4496 mandeep.dh 245
exception WarehouseServiceException {
246
    1:GenericService.ExceptionType exceptionType,
247
    2:string message
2820 chandransh 248
}
249
 
6548 amar.kumar 250
 
4496 mandeep.dh 251
service WarehouseService extends GenericService.GenericService {
252
    /**
253
     * Retrieves serialized inventory item given a serial number
254
     */
4541 mandeep.dh 255
    InventoryItem getInventoryItem(1:string serialNumber) throws (1:WarehouseServiceException wex);
2820 chandransh 256
 
4496 mandeep.dh 257
    /**
5361 mandeep.dh 258
     * Retrieves non-serialized inventory item from a given supplier
4496 mandeep.dh 259
     */
8565 amar.kumar 260
    InventoryItem getNonSeralizedInventoryItem(1:string itemNumber, 2:i64 itemId, 3:i64 fulfilmentWarehouseId, 4:i64 billingWarehouseId) throws (1:WarehouseServiceException wex);
3383 chandransh 261
 
4496 mandeep.dh 262
    /**
263
     * Scan non-serialized items.
264
     */
7410 amar.kumar 265
    void scan(1:InventoryItem inventoryItem, 2:ScanType type, 3:i64 quantity, 4:i64 billingWarehouseId, 5:i64 transferLotId) throws (1:WarehouseServiceException wex);
10489 amar.kumar 266
 
267
    /**
268
     * Scan non-serialized items.
269
     */
270
    void genericScan(1:InventoryItem inventoryItem, 2:Scan scan) throws (1:WarehouseServiceException wex);
4496 mandeep.dh 271
 
272
    /**
273
     * Scan serialized items linked with an order. Returns its price.
274
     */
5110 mandeep.dh 275
    InventoryItem scanSerializedItemForOrder(1:string serialNumber, 2:ScanType type, 3:i64 orderId, 4:i64 fulfilmentWarehouseId, 5:double quantity, 6:i64 billingWarehouseId) throws (1:WarehouseServiceException wex);
4496 mandeep.dh 276
 
277
    /**
278
     * Scan non-serialized items linked with an order.
279
     */
5361 mandeep.dh 280
    InventoryItem scanForOrder(1:InventoryItem inventoryItem, 2:ScanType type, 3:i64 quantity, 4:i64 orderId, 5:i64 fulfilmentWarehouseId, 6:i64 billingWarehouseId) throws (1:WarehouseServiceException wex);
4496 mandeep.dh 281
 
282
    /**
283
     * Created item number to item id mapping
284
     */
285
    void createItemNumberMapping(1:string itemNumber, 2:i64 itemId);
4618 amit.gupta 286
 
287
    /**
288
     * Get itemNumber mappings for itemId 
289
     */
290
    list<string> getItemNumbers(1:i64 itemId);
5110 mandeep.dh 291
 
292
    /**
293
     * Gets item ids for a given item number
294
     */
295
    list<i64> getItemIds(1:string itemNumber);
5185 mandeep.dh 296
 
297
    /**
298
     * Retrieves all inventory items given a last scan type
299
     */
300
    list<InventoryItem> getInventoryItemsFromLastScanType(1:ScanType lastScanType) throws (1:WarehouseServiceException wex);
301
 
302
    /**
303
     * Retrieves inventory item given a inventoryItem id
304
     */
5372 mandeep.dh 305
    InventoryItem getInventoryItemFromId(1:i64 inventoryItemId) throws (1:WarehouseServiceException wex);
306
 
307
    /**
308
     * Returns the purchase scans grouped by items for Purchase register reconciliation
309
     */
310
    list<DetailedPurchaseScan> getPurchaseScans(1:i64 startDate, 2:i64 endDate);
5496 mandeep.dh 311
 
312
    /**
7210 amar.kumar 313
     * Returns the purchase scans between grn dates grouped by items for Purchase register reconciliation 
314
     */
315
    list<DetailedPurchaseScan> getPurchaseScansByGrnDate(1:i64 startDate, 2:i64 endDate);
10215 amar.kumar 316
 
317
    /**
318
     * Returns the empty grn-ids between grn dates 
319
     */
320
    list<i64> getEmptyGrnsByDate(1:i64 startDate, 2:i64 endDate);
7210 amar.kumar 321
 
322
    /**
5496 mandeep.dh 323
     * Returns the invoices and the count of scans against on a given day.
324
     */
325
     list<InvoiceScan> fetchScansPerInvoiceNumber(1:i64 date);
5620 mandeep.dh 326
 
327
     /**
328
      * Returns inventory item for a given order
329
      */
330
     InventoryItem getInventoryItemFromOrder(1:i64 orderId) throws (1:WarehouseServiceException we);
5711 mandeep.dh 331
 
332
     /**
333
      * Fetches the stock inventory age week-wise
334
      */
335
     list<InventoryAge> getInventoryAge();
6322 amar.kumar 336
 
337
	 /**
338
      * Fetches the scanRecords for a given item for a given time interval 
339
      */
340
     list<Scan> getInventoryScansForItem(1:i64 itemId, 2:i64 fromDate, 3:i64 toDate);
341
 
342
     /**
343
      * Fetches the scanRecords for a given serialNumber for a given time interval 
344
      */
7410 amar.kumar 345
     list<Scan> getScanRecordsForSerialNumber(1:string serialNumber);
6322 amar.kumar 346
 
6467 amar.kumar 347
     /**
6548 amar.kumar 348
      * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
6467 amar.kumar 349
      */
10864 manish.sha 350
     i64 scanForPurchaseReturn(1:list<InventoryItem> saleReturnItems, 2:i64 vendorId, 3:i64 billingWarehouseId) throws (1:WarehouseServiceException ex);
6322 amar.kumar 351
 
6548 amar.kumar 352
     /**
353
      * Inserts scans for lost Items and updates lastScanType in InventoryItems
354
      */
7718 amar.kumar 355
     void scanForLostItem(1:list<InventoryItem> lostItems, 2:i64 vendorId, 3:i64 billingWarehouseId) throws (1:WarehouseServiceException ex);
6548 amar.kumar 356
 
357
     /**
358
      * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
359
      */
7676 amar.kumar 360
     list<InventoryAvailability> getCurrentSerializedInventoryByScans(1:i64 physicalWarehouseId);
6630 amar.kumar 361
 
362
      /**
363
      * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
364
      */
7676 amar.kumar 365
     list<InventoryAvailability> getCurrentNonSerializedInventoryByScans(1:i64 physicalWarehouseId);
6630 amar.kumar 366
 
6762 amar.kumar 367
     /**
368
      * Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
369
      */
370
     list<InventoryAvailability> getHistoricSerializedInventoryByScans(1:i64 date);
371
 
372
      /**
373
      * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
374
      */
375
     list<InventoryAvailability> getHistoricNonSerializedInventoryByScans(1:i64 date);
10308 amar.kumar 376
 
377
     /**
378
      * Get inventory for Serialized items in our warehouses at a given date using entries in ScanNew table
379
      */
380
     list<InventoryAvailability> getOurHistoricSerializedInventoryByScans(1:i64 date);
6762 amar.kumar 381
 
382
     /**
10308 amar.kumar 383
      * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
384
      */
385
     list<InventoryAvailability> getOurHistoricNonSerializedInventoryByScans(1:i64 date);
386
 
387
     /**
6880 amar.kumar 388
      * Insert Purchase/Sale Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 389
      */
7672 rajveer 390
     InventoryItem scanForOursExternalSale(1:i64 itemId, 2:string serialNumber, 3:string itemNumber, 4:string invoiceNumber, 5:i64 warehouseId, 6:double unitPrice, 7:double nlc, 8:i64 orderId)throws (1:WarehouseServiceException ex);
6762 amar.kumar 391
 
392
     /**
6880 amar.kumar 393
      * Insert Purchase_Ret/Sale_Ret Entries for product billed by Hotspot using OURS_EXTERNAL Billing
6762 amar.kumar 394
      */
7410 amar.kumar 395
     void scanForOursExternalSaleReturn(1:i64 orderId, 2:double unitPrice) throws (1:WarehouseServiceException ex);
6762 amar.kumar 396
 
10308 amar.kumar 397
     /**
398
      * This returns movement for each non serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)	
399
      */
6880 amar.kumar 400
     list<InventoryMovement> getMovementNonSerializedInventoryByScans(1:i64 startDate, 2:i64 endDate);
6762 amar.kumar 401
 
10308 amar.kumar 402
     /**
403
      * This returns movement for each serialized item in the specified window.(Doesn't include Hotspot and Amazon w/h)	
404
      */
6880 amar.kumar 405
     list<InventoryMovement> getMovementSerializedInventoryByScans(1:i64 startDate, 2:i64 endDate);
6762 amar.kumar 406
 
10308 amar.kumar 407
     /**
408
      * This returns movement for each serialized item in the specified window.(Doesn't include Amazon w/h)	
409
      */
7216 amar.kumar 410
     list<InventoryMovement> getCompleteMovementSerializedInventoryByScans(1:i64 startDate, 2:i64 endDate);
411
 
10308 amar.kumar 412
     /**
413
      * This returns movement for each non serialized item in the specified window.(Doesn't include Amazon w/h)	
414
      */
7216 amar.kumar 415
     list<InventoryMovement> getCompleteMovementNonSerializedInventoryByScans(1:i64 startDate, 2:i64 endDate);
416
 
7190 amar.kumar 417
     InventoryItem scanfreebie(1:i64 orderId, 2:i64 freebieItemId, 3:i64 freebieWarehouseId, 4:ScanType scanType) throws (1:WarehouseServiceException wex);
418
 
7199 amar.kumar 419
     void reshipfreebie(1:i64 oldOrderId, 2:i64 newOrderId, 3:i64 freebieItemId, 4:ScanType scanType) throws (1:WarehouseServiceException wex);
420
 
7410 amar.kumar 421
     bool isItemTransferAllowed(1:i64 warehouseId, 2:i64 transferWarehouseId);
422
 
423
     i64 createTransferLot(1:i64 originWarehouseId, 2:i64 destWarehouseId) throws (1:WarehouseServiceException wex);
424
 
425
     TransferLot getTransferLot(1:i64 transferLotId) throws (1:WarehouseServiceException wex);
426
 
427
	 void markTransferLotAsReceived(1:i64 id, 2:string remoteTransferRefNumber) throws (1:WarehouseServiceException wex);
428
 
429
	 list<TransferLot> getTransferLotsByDate(1:i64 fromDate, 2:i64 toDate) throws (1:WarehouseServiceException wex);
430
 
431
	 list<i64> getAllowedDestinationWarehousesForTransfer(1:i64 warehouseId);
432
 
433
	 map<i64, i64> getItemsInTransferLot(1:i64 transferLotId);
434
 
435
	 void markItemsAsReceivedForTransferLot(1:i64 id) throws (1:WarehouseServiceException wex);
436
 
437
	 TransferLotStatus updateTransferLotAfterItemReceive(1:i64 id) throws (1:WarehouseServiceException wex);
438
 
7453 amar.kumar 439
	 void scanForTransferOut(1:list<InventoryItem> inventoryItems, 2:ScanType type, 3:i64 transferLotId) throws (1:WarehouseServiceException wex);
440
 
441
	 void scanForTransferIn(1:list<InventoryItem> inventoryItems, 2:ScanType type, 3:i64 transferLotId) throws (1:WarehouseServiceException wex);
442
 
7574 amar.kumar 443
	 void scanForOursThirdPartyReceive(1:list<InventoryItem>inventoryItems, 2:i64 id) throws (1:WarehouseServiceException wex);
444
 
7613 amar.kumar 445
	 i64 getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse(1:i64 itemId, 2:i64 physicalWarehouseId) throws (1:WarehouseServiceException wex);
446
 
447
	 list<InTransitInventory> getInTransitInventory(1:i64 originWarehouseId);
7957 amar.kumar 448
 
7968 amar.kumar 449
	 bool isItemAvailableForSale(1:i64 itemId, 2:string serialNumber, 3:i64 warehouseId) throws (1:WarehouseServiceException wex);
7957 amar.kumar 450
 
451
	 /**
452
	 * Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
453
	 */
454
     list<InventoryAvailability> getHistoricBadInventoryByScans(1:i64 date) throws (1:WarehouseServiceException wex);
8565 amar.kumar 455
 
8717 amar.kumar 456
     InventoryItem scanForBadSale(1:string serialNumber, 2:string itemNumber, 3:i64 itemId, 4:i64 orderId, 5:i64 fulfilmentWarehouseId, 6:i64 quantity, 7:i64 billingWarehouseId) throws (1:WarehouseServiceException wex);
10120 manish.sha 457
 
458
	 list<InventoryItem> getTransferLotItemsForMarkReceive(1:i64 transferLotId, 2:ScanType scanType) throws (1:WarehouseServiceException wex);
459
 
460
	 void markItemsAsReceivedForTransferLotPartial(1:list<InventoryItem> inventoryItems, 2:i64 transferLotId) throws (1:WarehouseServiceException wex);
461
 
462
	 void markTransferLotAsReceivedPartial(1:i64 id, 2:string remoteTransferRefNumber) throws (1:WarehouseServiceException wex);
463
 
10689 manish.sha 464
	 list<InventoryItem> getInventoryItemScannedInForPO(1:i64 itemId, 2:list<i64> purchaseIds) throws (1:WarehouseServiceException wex);
465
 
466
	 list<AmazonTransferredSkuDetail> getAmazonTransferredSkuDetails(1:list<i64> itemIds) throws (1:WarehouseServiceException wex);
467
 
468
	 list<Scan> getScansforPurchase(1:i64 purchaseId, 2:ScanType scanType) throws (1:WarehouseServiceException wex);
10864 manish.sha 469
 
470
	 i64 getCurrentBadQuantityForItem(1:i64 itemId, 2:i64 currentWarehouseId, 3:i64 physicalWarehouseId) throws (1:WarehouseServiceException wex);
471
 
472
	 i64 scanForBadPurchaseReturn(1:list<InventoryItem> saleReturnItems, 2:i64 vendorId, 3:i64 billingWarehouseId) throws (1:WarehouseServiceException ex);
473
 
13529 manish.sha 474
	 map<i64, i64> getItemsInPurchaseReturn(1:i64 purchaseReturnId, 2:ScanType type, 3:string returnTime) throws (1:WarehouseServiceException ex);
11219 manish.sha 475
 
476
	 list<Scan> getScansForInventoryItem(1:i64 inventoryItemId, 2:ScanType type) throws (1:WarehouseServiceException ex);
477
 
11751 manish.sha 478
	 //string scanWithResponse(1:InventoryItem inventoryItem, 2:ScanType type, 3:i64 quantity, 4:i64 billingWarehouseId, 5:i64 transferLotId) throws (1:WarehouseServiceException wex);
479
 
12532 manish.sha 480
	 list<string> checkGrnImeiStatus(1:list<string> imeiNos) throws (1:WarehouseServiceException ex);
481
 
12800 manish.sha 482
	 list<InvAgeConsiderItems> getInventoryAgeConsideredItems(1:i64 itemId) throws (1:WarehouseServiceException ex);
483
 
13529 manish.sha 484
	 list<InventoryMovement> getCompleteMovementForThirdPartyWarehouse(1:i64 startDate, 2:i64 endDate);
14491 manish.sha 485
	 /* 
486
	 list<InventoryItem> getDoaOutInventoryItems(1:i64 offset,2:i64 limit) throws (1:WarehouseServiceException ex);
487
 
488
	 list<InventoryItem> getDoaOutSearchedItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit) throws (1:WarehouseServiceException ex);
489
 
490
	 i64 getCountForDoaOutInventoryItems() throws (1:WarehouseServiceException ex);
491
 
492
	 i64 getDoaOutInventoryItemsResultCount(1:list<string> searchTerm) throws (1:WarehouseServiceException ex); */
493
 
494
	 list<DoaOutInventoryItem> getAllDoaOutInventoryItems() throws (1:WarehouseServiceException ex);
15045 manish.sha 495
 
496
	 list<RemovalStockShipmentReference> getAllUnCompletedStockShipments(1:string source) throws (1:WarehouseServiceException ex);
497
 
498
	 RemovalStockShipmentReference getRemovalStockShipmentReferenceById(1:i64 id) throws (1:WarehouseServiceException ex);
499
 
500
	 i64 createRemovalStockShipmentReference(1:RemovalStockShipmentReference removalStockShipmentReference) throws (1:WarehouseServiceException ex);
501
 
502
	 void updateShipmentReferenceTransferLot(1:i64 transferLotId, 2:i64 shipmentReferenceId) throws (1:WarehouseServiceException ex); 
16264 manish.sha 503
 
504
	 /**
505
     * Returns the shipment references and the count of scans against on a given day.
506
     */
507
     list<TransferInvoiceScan> fetchScansPerTransferInvoiceNumber(1:i64 date);
21242 kshitij.so 508
 
509
     list<InventoryItem> getInventoryItems(1:list<string> serialNumbers) throws (1:WarehouseServiceException wex);
21617 amit.gupta 510
 
511
     list<InventoryItem> getInventoryItemsBySerailNumbers(1:list<string> serialNumbers) throws (1:WarehouseServiceException wex);
21242 kshitij.so 512
 
21617 amit.gupta 513
     void scanPurchaseBulk(1:list<InventoryItem> inventoryItems) throws (1:WarehouseServiceException wex);
514
 
515
 
516
 
517
 
518
 
7574 amar.kumar 519
}
520