This ensures the progragation of original transaction id
This commit is contained in:
@@ -107,7 +107,6 @@ class ProvideLoanService(BaseService):
|
|||||||
vat = charges["vat"]
|
vat = charges["vat"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Save the loan details
|
# Save the loan details
|
||||||
loan = Loan.create_loan(
|
loan = Loan.create_loan(
|
||||||
customer_id = customer_id,
|
customer_id = customer_id,
|
||||||
@@ -116,7 +115,7 @@ class ProvideLoanService(BaseService):
|
|||||||
product_id = offer.product_id,
|
product_id = offer.product_id,
|
||||||
collection_type = collection_type,
|
collection_type = collection_type,
|
||||||
transaction_id = validated_data.get('transactionId'),
|
transaction_id = validated_data.get('transactionId'),
|
||||||
original_transaction = validated_data.get('transactionId'),
|
original_transaction = transaction_offer.original_transaction,
|
||||||
initial_loan_amount = validated_data.get('requestedAmount'),
|
initial_loan_amount = validated_data.get('requestedAmount'),
|
||||||
upfront_fee = upfront_fee,
|
upfront_fee = upfront_fee,
|
||||||
repayment_amount = repayment_amount,
|
repayment_amount = repayment_amount,
|
||||||
@@ -124,7 +123,6 @@ class ProvideLoanService(BaseService):
|
|||||||
eligible_amount=eligible_amount,
|
eligible_amount=eligible_amount,
|
||||||
status = LoanStatus.ACTIVE,
|
status = LoanStatus.ACTIVE,
|
||||||
tenor = offer.tenor,
|
tenor = offer.tenor,
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if not loan:
|
if not loan:
|
||||||
|
|||||||
Reference in New Issue
Block a user