Subversion Repositories SmartDukaan

Rev

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

Rev 18703 Rev 18769
Line 2737... Line 2737...
2737
    
2737
    
2738
    def processLoanTransaction(self, paymentId, userId, creditorId, creditTxns):
2738
    def processLoanTransaction(self, paymentId, userId, creditorId, creditTxns):
2739
        try:
2739
        try:
2740
            return process_loan_transaction(paymentId, creditTxns)
2740
            return process_loan_transaction(paymentId, creditTxns)
2741
        finally:
2741
        finally:
2742
            close_session()     
2742
            close_session()
-
 
2743
            
-
 
2744
    def getLimitedCreditHistoryRecords(self, paymentId, userId, creditorId, limit, offset):
-
 
2745
        try:
-
 
2746
            return [to_t_CreditHistory(creditHistory) for creditHistory in get_credit_history_records(paymentId, userId, creditorId, None, limit, offset)]
-
 
2747
        finally:
-
 
2748
            close_session()
-
 
2749
    
-
 
2750
    def getLimitedLoanHistoryRecords(self, paymentId, userId, creditorId, limit, offset):
-
 
2751
        try:
-
 
2752
            return [to_t_LoanHistory(loanHistory) for loanHistory in get_loan_history_records(paymentId, userId, creditorId, None, limit, offset)]
-
 
2753
        finally:
-
 
2754
            close_session()
2743
          
2755
          
2744
def main():
2756
def main():
2745
    OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
2757
    OrderServiceHandler().creditBatch(2, '{"483649":100.0, "8021773":23, "123213":10}')
2746
            
2758
            
2747
if __name__ == '__main__':
2759
if __name__ == '__main__':