This commit was merged in pull request #16.
This commit is contained in:
Azeez Muibi
2025-05-03 12:15:45 +01:00
parent 7ec9eada4d
commit 905c43add6
5 changed files with 18 additions and 5 deletions
+1
View File
@@ -167,6 +167,7 @@ def get_all_loan_charges():
# Extract query parameters for filtering
filters = {
'loan_id': request.args.get('loan_id'),
'transaction_id': request.args.get('transaction_id'),
'code': request.args.get('code'),
'start_date': request.args.get('start_date'),
'end_date': request.args.get('end_date'),
+2
View File
@@ -28,6 +28,7 @@ class LoanChargeService:
# Extract filters
loan_id = filters.get('loan_id')
transaction_id = filters.get('transaction_id')
code = filters.get('code')
start_date = filters.get('start_date')
end_date = filters.get('end_date')
@@ -57,6 +58,7 @@ class LoanChargeService:
# Get loan charges with optional filters and pagination
loan_charges, total_count = LoanCharge.get_all_loan_charges(
loan_id=loan_id,
transaction_id=transaction_id,
code=code,
start_date=start_date,
end_date=end_date,