[fix]: save loan

This commit is contained in:
VivianDee
2025-04-10 12:35:46 +01:00
parent 2c34c16c34
commit 87f1fa2152
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -34,6 +34,8 @@ class ProvideLoanService(BaseService):
if (ProvideLoanService.validate_account_ownership(account_id = account_id, customer_id = customer_id)):
transaction = ProvideLoanService.log_transaction(validated_data = validated_data)
# Save the loan details here
loan_id = f"loan_{transaction.id}"
@@ -46,7 +48,7 @@ class ProvideLoanService(BaseService):
status="active"
)
transaction = ProvideLoanService.log_transaction(validated_data = validated_data)