Subversion Repositories SmartDukaan

Rev

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

Rev 6014 Rev 6015
Line 671... Line 671...
671
    session.commit()
671
    session.commit()
672
    if subject:
672
    if subject:
673
        __send_mail(subject, message)
673
        __send_mail(subject, message)
674
    return
674
    return
675
 
675
 
676
def __get_product_name(item):
-
 
677
    product_name = item.brand + " " + item.modelName + " " + item.modelNumber
-
 
678
    color = item.color
-
 
679
    if color is not None and color != 'NA':
-
 
680
        product_name = product_name + " (" + color + ")"
-
 
681
    product_name = product_name.replace("  "," ")
-
 
682
    return product_name
-
 
683
 
-
 
684
def add_vendor_item_mapping(key, vendorItemMapping):
676
def add_vendor_item_mapping(key, vendorItemMapping):
685
    if not vendorItemMapping:
677
    if not vendorItemMapping:
686
        raise InventoryServiceException(108, "Bad vendorItemMapping in request")
678
        raise InventoryServiceException(108, "Bad vendorItemMapping in request")
687
    vendorId = vendorItemMapping.vendorId
679
    vendorId = vendorItemMapping.vendorId
688
    itemId = vendorItemMapping.itemId
680
    itemId = vendorItemMapping.itemId