Subversion Repositories SmartDukaan

Rev

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

Rev 7190 Rev 7492
Line 535... Line 535...
535
            for line in cart.lines:
535
            for line in cart.lines:
536
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)
536
                logistics_info = logistics_client.getLogisticsEstimation(line.item_id, pincode, DeliveryType.PREPAID)
537
                if not logistics_info.codAllowed:
537
                if not logistics_info.codAllowed:
538
                    cod_option = False
538
                    cod_option = False
539
                    break
539
                    break
540
            if cart.total_price > 25000 or cart.total_price <= 250:
540
            if cart.total_price > 60000 or cart.total_price <= 250:
541
                cod_option = False
541
                cod_option = False
542
    return cod_option
542
    return cod_option
543
 
543
 
544
def is_product_added_to_cart(itemId, startDate, endDate):
544
def is_product_added_to_cart(itemId, startDate, endDate):
545
    line = Line.query.filter_by(item_id = itemId).filter(Line.created_on > to_py_date(startDate)).filter(Line.created_on < to_py_date(endDate)).first()
545
    line = Line.query.filter_by(item_id = itemId).filter(Line.created_on > to_py_date(startDate)).filter(Line.created_on < to_py_date(endDate)).first()