#NEWLINE# def get_debit_amount( self , entries ) : #NEWLINE# #INDENT# debit_amount = 0 #NEWLINE# for entry in entry : #NEWLINE# #INDENT# if ( str ( entry . entry_detail . transaction_code ) in [ '27' , '37' , '28' , '38' ] ) : #NEWLINE# #INDENT# debit_amount = ( debit_amount + int ( entry . entry_detail . amount ) ) #NEWLINE# #UNINDENT# #UNINDENT# return debit_amount