Offer id and interest amount

This commit is contained in:
CHIEFSOFT\ameye
2025-05-09 18:52:25 -04:00
parent 57207faf6f
commit 8ac22fa95f
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -123,6 +123,7 @@ class BaseService:
return {
"interest": interest,
"interest_amount": interest_amount,
"management": management,
"insurance": insurance,
"vat": vat,
+3 -1
View File
@@ -63,6 +63,7 @@ class SelectOfferService(BaseService):
insurance = charges["insurance"]
vat = charges["vat"]
repayment_amount = charges["repayment_amount"]
interest_amount = charges["interest_amount"]
# Calculate the repayment dates
@@ -81,11 +82,12 @@ class SelectOfferService(BaseService):
offers = [
{
"offerId": offer.id,
"offerId": offer.offer_id,
"productId": product_id,
"amount": amount,
"upfrontPayment": upfront_payment,
"interestRate": offer.interest_rate,
"interestAmount": interest_amount,
"managementRate": offer.management_rate,
"managementFee": management["fee"],
"insuranceRate": offer.insurance_rate,