Subversion Repositories SmartDukaan

Rev

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

Rev 15777 Rev 17216
Line 604... Line 604...
604
            item_change_log = ItemChangeLog()
604
            item_change_log = ItemChangeLog()
605
            item_change_log.old_status = item.status
605
            item_change_log.old_status = item.status
606
            item_change_log.new_status = content_complete_status
606
            item_change_log.new_status = content_complete_status
607
            item_change_log.timestamp = current_timestamp
607
            item_change_log.timestamp = current_timestamp
608
            item_change_log.item = item
608
            item_change_log.item = item
609
            if isAndroid:
609
            #if isAndroid:
610
                itemInsurerMapping = ItemInsurerMapping.query.filter(ItemInsurerMapping.itemId == item.id).filter(ItemInsurerMapping.insurerType == InsurerType._NAMES_TO_VALUES.get("DATA")).first()
610
            #    itemInsurerMapping = ItemInsurerMapping.query.filter(ItemInsurerMapping.itemId == item.id).filter(ItemInsurerMapping.insurerType == InsurerType._NAMES_TO_VALUES.get("DATA")).first()
611
                if itemInsurerMapping is None:
611
            #    if itemInsurerMapping is None:
612
                    itemInsurerMapping = ItemInsurerMapping()
612
            #        itemInsurerMapping = ItemInsurerMapping()
613
                    itemInsurerMapping.itemId = item.id
613
            #        itemInsurerMapping.itemId = item.id
614
                    itemInsurerMapping.insurerId = 2
614
            #        itemInsurerMapping.insurerId = 2
615
                    itemInsurerMapping.insurerType = 2
615
            #        itemInsurerMapping.insurerType = 2
616
       
616
       
617
        if item.status == status.PARTIALLY_ACTIVE:
617
        if item.status == status.PARTIALLY_ACTIVE:
618
            item.status = status.ACTIVE
618
            item.status = status.ACTIVE
619
        category_object = get_category(category)
619
        category_object = get_category(category)
620
        if category_object is not None:
620
        if category_object is not None: