Subversion Repositories SmartDukaan

Rev

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

Rev 6494 Rev 6548
Line 10... Line 10...
10
    DOA_IN = 3,     // Scan-in when an item is returned by the customer with the DOA certificate
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
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)
12
    PURCHASE_RETURN = 5, // Scan-out to return an item to the supplier (a Non-DOA case)
13
    SALE_RET_UNUSABLE = 6,
13
    SALE_RET_UNUSABLE = 6,
14
    LOST_IN_TRANSIT = 7,
14
    LOST_IN_TRANSIT = 7,
15
    DOA_REPLACED = 8
15
    DOA_REPLACED = 8,
-
 
16
    LOST_IN_WAREHOUSE = 9
16
}
17
}
17
 
18
 
18
struct InventoryItem {
19
struct InventoryItem {
19
    // primary fields
20
    // primary fields
20
    1:i64 id,
21
    1:i64 id,
Line 65... Line 66...
65
    3:string supplierName,
66
    3:string supplierName,
66
    4:i64 date,
67
    4:i64 date,
67
    5:i64 scannedQuantity
68
    5:i64 scannedQuantity
68
}
69
}
69
 
70
 
-
 
71
struct InventoryAvailability{
-
 
72
	1:i64 itemId,
-
 
73
	2:string brand,
-
 
74
	3:string modelName,
-
 
75
	4:string modelNumber,
-
 
76
	5:string color,
-
 
77
	6:i64 quantity
-
 
78
}
-
 
79
 
70
struct InventoryAge {
80
struct InventoryAge {
71
    1:i64 itemId,
81
    1:i64 itemId,
72
    2:string brand,
82
    2:string brand,
73
    3:string modelName,
83
    3:string modelName,
74
    4:string modelNumber,
84
    4:string modelNumber,
Line 88... Line 98...
88
exception WarehouseServiceException {
98
exception WarehouseServiceException {
89
    1:GenericService.ExceptionType exceptionType,
99
    1:GenericService.ExceptionType exceptionType,
90
    2:string message
100
    2:string message
91
}
101
}
92
 
102
 
-
 
103
 
93
service WarehouseService extends GenericService.GenericService {
104
service WarehouseService extends GenericService.GenericService {
94
    /**
105
    /**
95
     * Retrieves serialized inventory item given a serial number
106
     * Retrieves serialized inventory item given a serial number
96
     */
107
     */
97
    InventoryItem getInventoryItem(1:string serialNumber) throws (1:WarehouseServiceException wex);
108
    InventoryItem getInventoryItem(1:string serialNumber) throws (1:WarehouseServiceException wex);
Line 170... Line 181...
170
      * Fetches the scanRecords for a given serialNumber for a given time interval 
181
      * Fetches the scanRecords for a given serialNumber for a given time interval 
171
      */
182
      */
172
     list<Scan> getScanRecordsForSerialNumber(1:i64 serialNumber);
183
     list<Scan> getScanRecordsForSerialNumber(1:i64 serialNumber);
173
     
184
     
174
     /**
185
     /**
175
      * Inserts outgoing scans for Returned Items and updates returnId in InventoryItem
186
      * Inserts outgoing scans for Returned Items and updates returnId in InventoryItems
176
      */
187
      */
177
     void scanForPurchaseReturn(1:list<InventoryItem> saleReturnItems, 2:i64 vendorId) throws (1:WarehouseServiceException ex);
188
     void scanForPurchaseReturn(1:list<InventoryItem> saleReturnItems, 2:i64 vendorId) throws (1:WarehouseServiceException ex);
178
     
189
     
-
 
190
     /**
-
 
191
      * Inserts scans for lost Items and updates lastScanType in InventoryItems
-
 
192
      */
-
 
193
     void scanForLostItem(1:list<InventoryItem> lostItems, 2:i64 vendorId) throws (1:WarehouseServiceException ex);
-
 
194
     
-
 
195
     /**
-
 
196
      * Get inventory count for available Serialized items in our warehouses using entries in ScanNew table
-
 
197
      */
-
 
198
     list<InventoryAvailability> getCurrentSerializedInventoryByScans();
179
}
199
}