[add]: pending salaries
This commit was merged in pull request #26.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user