Subversion Repositories SmartDukaan

Rev

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

Rev 2497 Rev 2621
Line 549... Line 549...
549
    warehouses = item.currentInventory.warehouse
549
    warehouses = item.currentInventory.warehouse
550
    return warehouses
550
    return warehouses
551
 
551
 
552
def get_child_categories(category):
552
def get_child_categories(category):
553
    cm = CategoryManager()
553
    cm = CategoryManager()
-
 
554
    cat = cm.getCategory(category)
554
    return cm.getCategory(category).children_category_ids
555
    return cat.children_category_ids if cat else None
555
 
556
 
556
def get_best_sellers(start_index, stop_index, category=-1):
557
def get_best_sellers(start_index, stop_index, category=-1):
557
    '''
558
    '''
558
    Returns the Best Sellers between the start and the stop index in the given category
559
    Returns the Best Sellers between the start and the stop index in the given category
559
    '''
560
    '''