Subversion Repositories SmartDukaan

Rev

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

Rev 12963 Rev 13034
Line 606... Line 606...
606
                    itemInsurerMapping = ItemInsurerMapping()
606
                    itemInsurerMapping = ItemInsurerMapping()
607
                    itemInsurerMapping.itemId = item.id
607
                    itemInsurerMapping.itemId = item.id
608
                    itemInsurerMapping.insurerId = 2
608
                    itemInsurerMapping.insurerId = 2
609
                    itemInsurerMapping.insurerType = 2
609
                    itemInsurerMapping.insurerType = 2
610
       
610
       
-
 
611
        if item.status == status.PARTIALLY_ACTIVE:
-
 
612
            item.status = status.ACTIVE
611
        category_object = get_category(category)
613
        category_object = get_category(category)
612
        if category_object is not None:
614
        if category_object is not None:
613
            item.category = category
615
            item.category = category
614
            item.product_group = category_object.display_name
616
            item.product_group = category_object.display_name
-
 
617
        else:
-
 
618
            return False
615
        item.brand = brand
619
        item.brand = brand
616
        item.model_name = modelName
620
        item.model_name = modelName
617
        item.model_number = modelNumber
621
        item.model_number = modelNumber
618
        item.updatedOn = current_timestamp
622
        item.updatedOn = current_timestamp
619
    session.commit()
623
    session.commit()