approved_amount
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user