Subversion Repositories SmartDukaan

Rev

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

Rev 19836 Rev 19868
Line 2784... Line 2784...
2784
            hasMore, totalCount, loanHistoryList = get_loan_history_records_paginated(paymentId, userId, creditorId, None, limit, offset)
2784
            hasMore, totalCount, loanHistoryList = get_loan_history_records_paginated(paymentId, userId, creditorId, None, limit, offset)
2785
            return to_t_PaginatedLoanHistory(hasMore, totalCount, loanHistoryList)
2785
            return to_t_PaginatedLoanHistory(hasMore, totalCount, loanHistoryList)
2786
        finally:
2786
        finally:
2787
            close_session()
2787
            close_session()
2788
            
2788
            
2789
    def getUserSanctionsDetailsAsPerLimit(self, userId, creditorId, limit, offset):
2789
    def getUserSanctionsDetailsAsPerLimit(self, userId, creditorId, limit, offset,sort):
2790
        try:
2790
        try:
2791
            hasMore, totalCount, returnMap = get_user_sanction_details_paginated(userId, creditorId, limit, offset)
2791
            hasMore, totalCount, returnMap = get_user_sanction_details_paginated(userId, creditorId, limit, offset,sort)
2792
            sanctionsList = []
2792
            sanctionsList = []
2793
            for creditorMap in returnMap.values():
2793
            for creditorMap in returnMap.values():
2794
                for sanction in creditorMap.get('Sanctions'):
2794
                for sanction in creditorMap.get('Sanctions'):
2795
                    sanctionsList.append(to_t_UserSanction(sanction, creditorMap.get('TicketSize')))
2795
                    sanctionsList.append(to_t_UserSanction(sanction, creditorMap.get('TicketSize')))
2796
            return to_t_PaginatedUserSanction(hasMore, totalCount, sanctionsList)
2796
            return to_t_PaginatedUserSanction(hasMore, totalCount, sanctionsList)