From 03adb266bb5f74cd96522879b90f44f9a7d00135 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 3 May 2025 09:04:42 -0400 Subject: [PATCH] approved_amount --- app/api/services/eligibility_check.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/api/services/eligibility_check.py b/app/api/services/eligibility_check.py index caa0c92..1141dd3 100644 --- a/app/api/services/eligibility_check.py +++ b/app/api/services/eligibility_check.py @@ -72,6 +72,7 @@ class EligibilityCheckService(BaseService): # Determine an approved amount random_float = random.random() # temporary to play data approved_amount = min(offer.max_amount, offer.max_amount * random_float) #temporary for now + approved_amount = round(approved_amount, 2) transaction_offer = TransactionOffer.create_transaction_offer( customer_id = customer.id,