Customer id fix

This commit is contained in:
CHIEFSOFT\ameye
2025-05-10 05:33:04 -04:00
parent f573d5e643
commit cc3cd5b72b
2 changed files with 9 additions and 4 deletions
+3 -2
View File
@@ -84,9 +84,10 @@ class EligibilityCheckService(BaseService):
# eligible_offers = []
try:
eligible_offers = OfferAnalysis.decide_offer(
transaction_id=transaction_id,
transaction_id=transactionId,
rac_check=rac_check,
validated_data=validated_data
validated_data=validated_data,
customer=customer
)
except ValueError as ve:
logger.error(str(ve))
+6 -2
View File
@@ -1,6 +1,6 @@
from app.models import Offer, TransactionOffer
from app.models.loan import Loan
import random
import logging
logger = logging.getLogger(__name__)
@@ -37,11 +37,15 @@ class OfferAnalysis:
return transaction_offer, offer, eligible_amount, original_transaction
@staticmethod
def decide_offer(transaction_id, rac_check, validated_data):
def decide_offer(transaction_id, rac_check, validated_data,customer):
# if we have active offers - we have to feed off it
# Do this if no active loan or registered offers
offers = Offer.get_all_offers()
eligible_offers = []