Subversion Repositories SmartDukaan

Rev

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

Rev 596 Rev 963
Line 1... Line 1...
1
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, status, Warehouse
1
from shop2020.thriftpy.model.v1.catalog.ttypes import Item, status, Warehouse
2
import datetime
2
import datetime
3
from shop2020.clients.InventoryClient import InventoryClient
3
from shop2020.clients.InventoryClient import InventoryClient
4
from shop2020.utils.Utils import to_java_date
4
from shop2020.utils.Utils import to_java_date
5
import xlrd
5
import xlrd
6
from shop2020.clients.WidgetClient import WidgetClient
-
 
7
 
6
 
8
inventory_client = InventoryClient()
7
inventory_client = InventoryClient()
9
 
8
 
10
#inventory_client.__start__()
9
#inventory_client.__start__()
11
 
10
 
Line 25... Line 24...
25
        continue
24
        continue
26
    print sheet.row_values(count)
25
    print sheet.row_values(count)
27
    item = Item()
26
    item = Item()
28
    item.catalogItemId = sheet.row_values(count)[0]
27
    item.catalogItemId = sheet.row_values(count)[0]
29
    item.category = sheet.row_values(count)[1]
28
    item.category = sheet.row_values(count)[1]
30
    item.manufacturerName = sheet.row_values(count)[2]
29
    item.brand = sheet.row_values(count)[2]
31
    item.modelNumber = sheet.row_values(count)[3]
30
    item.modelNumber = sheet.row_values(count)[3]
32
    item.modelName = sheet.row_values(count)[4]
31
    item.modelName = sheet.row_values(count)[4]
33
    item.mrp = sheet.row_values(count)[5]
32
    item.mrp = sheet.row_values(count)[5]
34
    item.sellingPrice = sheet.row_values(count)[6]
33
    item.sellingPrice = sheet.row_values(count)[6]
35
    item.vendorItemId = str(long(sheet.row_values(count)[8]))
34
    item.vendorItemId = str(long(sheet.row_values(count)[8]))
Line 50... Line 49...
50
 
49
 
51
    item = Item()
50
    item = Item()
52
 
51
 
53
    item.catalogItemId = long(sheet.row_values(count)[0])
52
    item.catalogItemId = long(sheet.row_values(count)[0])
54
    #item.category = sheet.row_values(count)[1]
53
    #item.category = sheet.row_values(count)[1]
55
    #item.manufacturerName = sheet.row_values(count)[2]
54
    #item.brand = sheet.row_values(count)[2]
56
    #item.modelNumber = sheet.row_values(count)[3]
55
    #item.modelNumber = sheet.row_values(count)[3]
57
    #item.modelName = sheet.row_values(count)[4]
56
    #item.modelName = sheet.row_values(count)[4]
58
    #item.mrp = long(sheet.row_values(count)[5])
57
    #item.mrp = long(sheet.row_values(count)[5])
59
    #item.sellingPrice = long(sheet.row_values(count)[6])
58
    #item.sellingPrice = long(sheet.row_values(count)[6])
60
    
59