[fix]: Removed out product and lien amount

This commit is contained in:
VivianDee
2025-04-10 12:58:30 +01:00
parent f13ca508c2
commit b22d2f358e
4 changed files with 8 additions and 16 deletions
+2 -2
View File
@@ -42,14 +42,14 @@ class ProvideLoanService(BaseService):
"message": "Failed to log transaction."
}), 400
# Save the loan details here
# Save the loan details
loan_id = f"loan_{transaction.id}"
loan = Loan.create_loan(
id=loan_id,
customer_id=customer_id,
account_id=account_id,
product_id=validated_data.get('productId'),
offer_id=validated_data.get('offerId'),
principal_amount=validated_data.get('requestedAmount'),
status="active"
)