From 39ea231fa0cd2aac104bc60ea203db40b5b34694 Mon Sep 17 00:00:00 2001 From: Chinenye Nmoh Date: Fri, 23 Jan 2026 20:38:53 +0100 Subject: [PATCH] added logic to only send charges for 1 month loan --- app/integrations/simbrella.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/integrations/simbrella.py b/app/integrations/simbrella.py index 61cc544..cdf3206 100644 --- a/app/integrations/simbrella.py +++ b/app/integrations/simbrella.py @@ -94,7 +94,7 @@ class SimbrellaClient: insurance_fee = loan_charges.get("INSURANCE")['amount'] debtId = str(loan_data.get('debtId', "")).strip().zfill(6) - + product_id = str(loan_data.get('productId', '')) disbursement_data = { "transactionId": loan_data.get('transactionId'), "fbnTransactionId": loan_data.get('transactionId'), @@ -103,10 +103,10 @@ class SimbrellaClient: "accountId": loan_data.get('accountId'), "productId": str(loan_data.get('productId', "")), "provideAmount": loan_data.get('currentLoanAmount'), - "collectAmountInterest": interest_fee, - "collectAmountMgtFee": mgt_fee, - "collectAmountInsurance": insurance_fee, - "collectAmountVAT": vat_fee, + "collectAmountInterest": interest_fee if product_id != '3MPC' else 0, + "collectAmountMgtFee": mgt_fee if product_id != '3MPC' else 0, + "collectAmountInsurance": insurance_fee if product_id != '3MPC' else 0, + "collectAmountVAT": vat_fee if product_id != '3MPC' else 0, "countryId": "01", "comment": "Loan Disbursement", }