added extra query

This commit is contained in:
Chinenye Nmoh
2026-03-17 09:37:08 +01:00
parent bfb35e0285
commit 569d4c45d7
49 changed files with 4516 additions and 4505 deletions
+23 -23
View File
@@ -1,24 +1,24 @@
from app.models import Salary
class SalaryService:
@classmethod
def add_salary_data(cls,data):
"""
Add a new salary data entry.
"""
return Salary.add_salary_data(data)
@classmethod
def get_pending_salaries(cls):
"""
Get the pending salary for a given customer.
"""
return Salary.get_pending_salaries()
@classmethod
def update_status(cls, salary_id, status):
"""
Update the status of the salary with the given salary_id.
"""
from app.models import Salary
class SalaryService:
@classmethod
def add_salary_data(cls,data):
"""
Add a new salary data entry.
"""
return Salary.add_salary_data(data)
@classmethod
def get_pending_salaries(cls):
"""
Get the pending salary for a given customer.
"""
return Salary.get_pending_salaries()
@classmethod
def update_status(cls, salary_id, status):
"""
Update the status of the salary with the given salary_id.
"""
return Salary.update_status(salary_id, status)