Files
2025-06-19 21:30:21 +01:00

24 lines
601 B
Python

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)