Updated files to produce accounting information.

This commit is contained in:
john
2023-09-04 15:30:32 -04:00
parent 9d74519c3e
commit cf2748c007

View File

@@ -215,6 +215,13 @@ def getStatementHeader(datastore):
return datastore['header']
def getAccounting(datastore):
try:
return datastore['accounting']
except:
return {"payment_account":"", "loan_account":"", "interest_account": ""}
def getEmailInformation(datastore):
return datastore['email']
@@ -229,6 +236,7 @@ def loadLoanInformation(document_id):
loanModel['lender'] = getLender(datastore)
loanModel['borrower'] = getBorrower(datastore)
loanModel['header'] = getStatementHeader(datastore)
loanModel['accounting'] = getAccounting(datastore)
return loanModel