Subversion Repositories SmartDukaan

Rev

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

Rev 472 Rev 483
Line 7... Line 7...
7
 
7
 
8
inventory_client.__start__()
8
inventory_client.__start__()
9
 
9
 
10
client = inventory_client.get_client()
10
client = inventory_client.get_client()
11
 
11
 
-
 
12
timestamp = to_java_date(datetime.datetime.now())
-
 
13
availability = {1:20}
-
 
14
 
-
 
15
 
-
 
16
 
-
 
17
client.updateInventory(1, timestamp, availability)
-
 
18
 
-
 
19
'''
12
warehouse = Warehouse()
20
warehouse = Warehouse()
13
 
21
 
14
warehouse.location = "Delhi"
22
warehouse.location = "SPICE RETAIL LTD. WZ-152-A/3, Main Najafgarh Road, Uttam Nagar, N.D.-110059"
15
warehouse.status = status.ACTIVE
23
warehouse.status = status.ACTIVE
16
warehouse.addedOn = to_java_date(datetime.datetime.now())
24
warehouse.addedOn = to_java_date(datetime.datetime.now())
-
 
25
warehouse.lastCheckedOn = to_java_date(datetime.datetime.now())
-
 
26
warehouse.tinNumber = "07430284979"
17
 
27
 
18
client.addWarehouse(warehouse)
28
client.addWarehouse(warehouse)
19
client.addWarehouse(warehouse)
29
#client.addWarehouse(warehouse)
20
 
30
 
21
item = Item()
31
item = Item()
22
item.vendorItemId = 11
32
item.vendorItemId = 38574
23
item.featureDescription = "Red colour"
33
item.featureDescription = "Red colour"
24
item.featureId = 11
34
item.featureId = 11
25
item.itemStatus = status.ACTIVE
35
item.itemStatus = status.ACTIVE
26
item.catalogItemId = 1000120
36
item.catalogItemId = 1000120
27
item.weight = 65.2
37
item.weight = 65.2
Line 30... Line 40...
30
price_map[2] = 2010.3
40
price_map[2] = 2010.3
31
item.price = price_map
41
item.price = price_map
32
item.addedOn = to_java_date(datetime.datetime.now())
42
item.addedOn = to_java_date(datetime.datetime.now())
33
item.startDate = to_java_date(datetime.datetime.now())
43
item.startDate = to_java_date(datetime.datetime.now())
34
client.addItem(item)
44
client.addItem(item)
-
 
45
 
-
 
46
 
-
 
47
'''
-
 
48
 
35
'''
49
'''
36
warehouse = Warehouse()
50
warehouse = Warehouse()
37
warehouse.location = "Delhi"
51
warehouse.location = "Delhi"
38
#print inventory_client.add_warehouse(warehouse)
52
#print inventory_client.add_warehouse(warehouse)
39
 
53