Subversion Repositories SmartDukaan

Rev

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

Rev 17974 Rev 17990
Line 524... Line 524...
524
                __update_item_availability_cache(item_id, 1, items[item_id])
524
                __update_item_availability_cache(item_id, 1, items[item_id])
525
                __check_risky_item(item_id, 1)
525
                __check_risky_item(item_id, 1)
526
            except:
526
            except:
527
                print "Could not update cache for "
527
                print "Could not update cache for "
528
                continue
528
                continue
529
    return    
529
    return True   
530
 
530
 
531
def __update_item_availability_cache(item_id, source_id, item=None):
531
def __update_item_availability_cache(item_id, source_id, item=None):
532
    """
532
    """
533
    Determines the warehouse that should be used to fulfil an order for the given item.
533
    Determines the warehouse that should be used to fulfil an order for the given item.
534
    Algorithm explained at https://sites.google.com/a/shop2020.in/virtual-w-h-and-inventory/technical-details
534
    Algorithm explained at https://sites.google.com/a/shop2020.in/virtual-w-h-and-inventory/technical-details