Subversion Repositories SmartDukaan

Rev

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

Rev 18813 Rev 18814
Line 3348... Line 3348...
3348
        for line in lines:
3348
        for line in lines:
3349
            if not line.itemId in itemList:
3349
            if not line.itemId in itemList:
3350
                itemList.append(line.itemId)
3350
                itemList.append(line.itemId)
3351
    items = session.query(Category.parent_category_id,Item.id).join((Item,Category.id==Item.category)).filter(Item.id.in_(itemList)).all()
3351
    items = session.query(Category.parent_category_id,Item.id).join((Item,Category.id==Item.category)).filter(Item.id.in_(itemList)).all()
3352
    for item in items:
3352
    for item in items:
3353
        if item[1] in (10001, 10009, 10049, 11001):
3353
        if item[0] in (10001, 10009, 10049, 11001):
-
 
3354
            try:
3354
            itemList.remove(item[0])
3355
                itemList.remove(item[1])
-
 
3356
            except:
-
 
3357
                pass
3355
    for cart_id, lines in returnMap.iteritems():
3358
    for cart_id, lines in returnMap.iteritems():
3356
        actual_price = 0
3359
        actual_price = 0
3357
        for line in lines:
3360
        for line in lines:
3358
            if line.itemId in itemList:
3361
            if line.itemId in itemList:
3359
                actual_price = actual_price + line.quantity*line.actualPrice
3362
                actual_price = actual_price + line.quantity*line.actualPrice