Subversion Repositories SmartDukaan

Rev

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

Rev 18719 Rev 19754
Line 21... Line 21...
21
    HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo, BulkItemPricing as TBulkItemPricing, DtrPricing as TDtrPricing
21
    HsItem as THsItem, VoiSnapdealItemInfo as TVoiSnapdealItemInfo, BulkItemPricing as TBulkItemPricing, DtrPricing as TDtrPricing
22
 
22
 
23
from shop2020.utils.Utils import to_java_date, to_py_date
23
from shop2020.utils.Utils import to_java_date, to_py_date
24
import datetime
24
import datetime
25
 
25
 
26
def to_t_item(item):
26
def to_t_item(item, dealPrice=None):
27
    t_item = Item()
27
    t_item = Item()
28
    if item is None:
28
    if item is None:
29
        return t_item
29
        return t_item
30
    t_item.id = item.id
30
    t_item.id = item.id
-
 
31
    t_item.dealPrice = dealPrice
31
    t_item.productGroup = item.product_group
32
    t_item.productGroup = item.product_group
32
    t_item.brand = item.brand
33
    t_item.brand = item.brand
33
    t_item.modelNumber = item.model_number
34
    t_item.modelNumber = item.model_number
34
    t_item.modelName = item.model_name
35
    t_item.modelName = item.model_name
35
    t_item.color = item.color
36
    t_item.color = item.color