Subversion Repositories SmartDukaan

Rev

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

Rev 18539 Rev 18541
Line 967... Line 967...
967
        for dictbulkPricing in cartItem['bulkPricing']:
967
        for dictbulkPricing in cartItem['bulkPricing']:
968
            if dictbulkPricing['quantity'] < cartItem['minBuyQuantity'] or dictbulkPricing['quantity'] > cartItem['maxQuantity']:
968
            if dictbulkPricing['quantity'] < cartItem['minBuyQuantity'] or dictbulkPricing['quantity'] > cartItem['maxQuantity']:
969
                toRemove.append(dictbulkPricing)
969
                toRemove.append(dictbulkPricing)
970
        for removePricing in toRemove:
970
        for removePricing in toRemove:
971
            cartItem['bulkPricing'].remove(removePricing)
971
            cartItem['bulkPricing'].remove(removePricing)
972
        cartItem['bulkPricing'] = sorted(cartItem['bulkPricing'], key=lambda k: k['quantity'],reverse=True)
972
        cartItem['bulkPricing'] = sorted(cartItem['bulkPricing'], key=lambda k: k['quantity'],reverse=False)
973
        
973
        
974
        if item_shipping_info.isActive:
974
        if item_shipping_info.isActive:
975
            cart.total_price = cart.total_price + (line.actual_price * line.quantity)
975
            cart.total_price = cart.total_price + (line.actual_price * line.quantity)
976
            try:
976
            try:
977
                item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime
977
                item_delivery_estimate = logistics_client.getLogisticsEstimation(item_id, customer_pincode, DeliveryType.PREPAID).deliveryTime