[add]: pending salaries

This commit was merged in pull request #26.
This commit is contained in:
VivianDee
2025-06-19 12:49:15 +01:00
parent a105cf2a99
commit 31e38da473
3 changed files with 28 additions and 2 deletions
+8
View File
@@ -131,6 +131,14 @@ def salary_detect():
# PART 2 SELECT * FROM salaries WHERE status IS 'START' ORDER BY id ASC
# **************************************************
pending_salaries = SalaryService.get_pending_salaries()
if not pending_salaries:
logger.info(f"No pending salaries found")
# return ResponseHelper.success([], "No pending salaries found")
logger.info(f"Found {len(pending_salaries)} pending salaries")
#in the loop
# USE the customerID to find thu user Loan
# if loan is/are found for the user