added extra query
This commit is contained in:
+23
-23
@@ -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)
|
||||
Reference in New Issue
Block a user