Subversion Repositories SmartDukaan

Rev

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

Rev 483 Rev 494
Line 11... Line 11...
11
 
11
 
12
timestamp = to_java_date(datetime.datetime.now())
12
timestamp = to_java_date(datetime.datetime.now())
13
availability = {1:20}
13
availability = {1:20}
14
 
14
 
15
 
15
 
-
 
16
warehouse = Warehouse()
-
 
17
 
-
 
18
warehouse.location = "SPICE RETAIL LTD. WZ-152-A/3, Main Najafgarh Road, Uttam Nagar, N.D.-110059"
-
 
19
warehouse.status = status.ACTIVE
-
 
20
warehouse.addedOn = to_java_date(datetime.datetime.now())
-
 
21
warehouse.lastCheckedOn = to_java_date(datetime.datetime.now())
-
 
22
warehouse.tinNumber = "07430284979"
-
 
23
warehouse.vendorString = "07430284979"
-
 
24
 
-
 
25
client.addWarehouse(warehouse)
16
 
26
 
17
client.updateInventory(1, timestamp, availability)
-
 
18
 
27
 
19
'''
28
'''
-
 
29
client.updateInventory(1, timestamp, availability)
-
 
30
 
-
 
31
 
20
warehouse = Warehouse()
32
warehouse = Warehouse()
21
 
33
 
22
warehouse.location = "SPICE RETAIL LTD. WZ-152-A/3, Main Najafgarh Road, Uttam Nagar, N.D.-110059"
34
warehouse.location = "SPICE RETAIL LTD. WZ-152-A/3, Main Najafgarh Road, Uttam Nagar, N.D.-110059"
23
warehouse.status = status.ACTIVE
35
warehouse.status = status.ACTIVE
24
warehouse.addedOn = to_java_date(datetime.datetime.now())
36
warehouse.addedOn = to_java_date(datetime.datetime.now())