Transaction Id on repayment
This commit is contained in:
@@ -33,7 +33,8 @@ class RepaymentService(BaseService):
|
||||
loan_id = validated_data.get('debtId')
|
||||
product_id = validated_data.get('productId')
|
||||
account_id = validated_data.get('accountId')
|
||||
customer = Customer.get_customer(customer_id)
|
||||
customer = Customer.get_customer(customer_id)
|
||||
transaction_id = validated_data.get('transactionId')
|
||||
|
||||
if(RepaymentService.validate_account_ownership(account_id = account_id, customer_id = customer_id)):
|
||||
|
||||
@@ -41,7 +42,8 @@ class RepaymentService(BaseService):
|
||||
repayment = Repayment.create_repayment(
|
||||
customer_id = customer_id,
|
||||
loan_id = loan_id,
|
||||
product_id = product_id
|
||||
product_id = product_id,
|
||||
transaction_id=transaction_id
|
||||
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user