Subversion Repositories SmartDukaan

Rev

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

Rev 18982 Rev 19182
Line 836... Line 836...
836
        else:
836
        else:
837
            return False
837
            return False
838
    except:
838
    except:
839
        return False
839
        return False
840
 
840
 
-
 
841
def tax_invoice_available(address_id):
-
 
842
    addressMapping = PrivateDealUserAddressMapping.query.filter_by(address_id=address_id).first()
-
 
843
    return True if addressMapping and addressMapping.taxInvoiceAvailable else False
-
 
844
 
841
def get_cart_by_value(cartIds):
845
def get_cart_by_value(cartIds):
842
    returnMap = {}
846
    returnMap = {}
843
    lines = Line.query.filter(Line.cart_id.in_(cartIds)).all()
847
    lines = Line.query.filter(Line.cart_id.in_(cartIds)).all()
844
    for line in lines:
848
    for line in lines:
845
        if returnMap.has_key(line.cart_id):
849
        if returnMap.has_key(line.cart_id):