Subversion Repositories SmartDukaan

Rev

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

Rev 7972 Rev 8182
Line 67... Line 67...
67
 
67
 
68
/* */
68
/* */
69
struct ItemInventory{
69
struct ItemInventory{
70
	1:i64 id,
70
	1:i64 id,
71
	2:map<i64,i64> availability,
71
	2:map<i64,i64> availability,
72
	3:map<i64,i64> reserved
72
	3:map<i64,i64> reserved,
-
 
73
	4:map<i64,i64> held
73
}
74
}
74
 
75
 
75
struct ItemInventoryHistory{
76
struct ItemInventoryHistory{
76
	1:i64 item_id,
77
	1:i64 item_id,
77
	2:i64 warehouse_id,
78
	2:i64 warehouse_id,
Line 120... Line 121...
120
struct OOSStatus {
121
struct OOSStatus {
121
	1:i64 item_id
122
	1:i64 item_id
122
	2:i64 date
123
	2:i64 date
123
	3:bool is_oos
124
	3:bool is_oos
124
	4:i64 num_orders
125
	4:i64 num_orders
-
 
126
	5:i64 rto_orders
125
}
127
}
126
 
128
 
127
struct AmazonInventorySnapshot {
129
struct AmazonInventorySnapshot {
128
    1:i64 item_id
130
    1:i64 item_id
129
    2:i64 availability
131
    2:i64 availability
130
    3:i64 reserved
132
    3:i64 reserved
131
} 
133
} 
132
 
134
 
-
 
135
struct HoldInventoryDetail {
-
 
136
	1:i64 item_id
-
 
137
	2:i64 warehouse_id
-
 
138
	3:i64 held
-
 
139
	4:i64 source
-
 
140
}
-
 
141
 
133
service InventoryService extends GenericService.GenericService{
142
service InventoryService extends GenericService.GenericService{
134
 
143
 
135
	i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
144
	i64 addWarehouse(1:Warehouse warehouse) throws (1:InventoryServiceException cex),
136
	
145
	
137
	/**
146
	/**
Line 353... Line 362...
353
	
362
	
354
	void addOrUpdateAmazonInventoryForItem(1:AmazonInventorySnapshot amazonInventorySnapshot);
363
	void addOrUpdateAmazonInventoryForItem(1:AmazonInventorySnapshot amazonInventorySnapshot);
355
	
364
	
356
	string getLastNdaySaleForItem(1:i64 itemId, 2:i64 numberOfDays);
365
	string getLastNdaySaleForItem(1:i64 itemId, 2:i64 numberOfDays);
357
	
366
	
-
 
367
	void addUpdateHoldInventory(1:i64 itemId, 2:i64 warehouseId, 3:i64 holdQuantity, 4:i64 source);
-
 
368
	
358
}
369
}