Subversion Repositories SmartDukaan

Rev

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

Rev 17713 Rev 17748
Line 104... Line 104...
104
        for sku in topSkus:
104
        for sku in topSkus:
105
            """Fix this """
105
            """Fix this """
106
            #TODO Compute deal flags else where.
106
            #TODO Compute deal flags else where.
107
            info = __SkuInfo(sku['_id'], sku['skuBundleId'], sku['category_id'], sku['mrp'], sku['available_price'], sku['source_id'], sku['rank'], None, None, 0.0, None, \
107
            info = __SkuInfo(sku['_id'], sku['skuBundleId'], sku['category_id'], sku['mrp'], sku['available_price'], sku['source_id'], sku['rank'], None, None, 0.0, None, \
108
                             None, None, None, None, sku['status'], sku['in_stock'],sku['maxPrice'],sku['brand'].strip().upper(), 0, sku['brand_id'], None, sku['codAvailable'], 0, sku['gross_price'], sku['subCategoryId'], \
108
                             None, None, None, None, sku['status'], sku['in_stock'],sku['maxPrice'],sku['brand'].strip().upper(), 0, sku['brand_id'], None, sku['codAvailable'], 0, sku['gross_price'], sku['subCategoryId'], \
109
                             sku['subCategory'])
109
                             sku['subCategory'],sku['shippingCost'])
110
            exceptionalNlc = list(get_mongo_connection().Catalog.ExceptionalNlc.find( {"$and" : [ {'skuBundleId':info.skuBundleId}, {'overrideNlc':1} ]} ))
110
            exceptionalNlc = list(get_mongo_connection().Catalog.ExceptionalNlc.find( {"$and" : [ {'skuBundleId':info.skuBundleId}, {'overrideNlc':1} ]} ))
111
            if len(exceptionalNlc) > 0:
111
            if len(exceptionalNlc) > 0:
112
                """Exceptional nlc found, no need to calculate max and min R-nlc"""
112
                """Exceptional nlc found, no need to calculate max and min R-nlc"""
113
                info.maxNlc = exceptionalNlc[0]['maxNlc']
113
                info.maxNlc = exceptionalNlc[0]['maxNlc']
114
                info.minNlc = exceptionalNlc[0]['minNlc']
114
                info.minNlc = exceptionalNlc[0]['minNlc']