[fix]: save loan
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user