commited loan date

This commit was merged in pull request #18.
This commit is contained in:
Chinenye Nmoh
2025-06-03 17:14:02 +01:00
parent 2872f6c75c
commit 15e012c071
3 changed files with 47 additions and 23 deletions
+10 -10
View File
@@ -51,9 +51,8 @@ class SimbrellaClient:
return 0
logger.info(f"Here are your cal 111 : *********************************************************")
# let us set disbursement date
disburse_date = LoanService.set_disbursement_date(loan_data['debtId'], loan_data['customerId']) # toda this must return something
LoanService.set_disbursement_date(loan_data['debtId'], loan_data['customerId']) # toda this must return something
logger.info(f"Here are your cal 000 : *********************************************************")
loan_data['disburseDate'] = disburse_date
logger.info(f"Here is your loan data after setting disbursement date: {loan_data}")
loan_charges = preprocess_loan_charges_data([loan_charge.to_dict() for loan_charge in loan.loan_charges])
@@ -64,14 +63,15 @@ class SimbrellaClient:
interest_fee = loan_charges.get("INTEREST")['amount']
insurance_fee = loan_charges.get("INSURANCE")['amount']
disbursement_data ={
"requestId": data['requestId'],
"transactionId": data['transactionId'],
"debtId": loan_data['debtId'],
"customerId": data['customerId'],
"accountId": data['accountId'],
"productId": loan_data['productId'],
"provideAmount": loan_data['currentLoanAmount'],
disbursement_data = {
"requestId": data.get('requestId'),
"transactionId": data.get('transactionId'),
"FbnTransactionId": data.get('FbnTransactionId'),
"debtId": str(loan_data.get('debtId', "")),
"customerId": data.get('customerId'),
"accountId": data.get('accountId'),
"productId": str(loan_data.get('productId', "")),
"provideAmount": loan_data.get('currentLoanAmount'),
"collectAmountInterest": interest_fee,
"collectAmountMgtFee": mgt_fee,
"collectAmountInsurance": insurance_fee,