feat: deals table

This commit is contained in:
2024-08-16 20:38:33 +03:00
parent 1b46a0fc56
commit 220ced73f7
2 changed files with 5 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ class TimeTrackingService(BaseService):
PaymentRecord.user
)
)
.join(
User.is_deleted == False
)
.where(
func.date(func.date_trunc('month', PaymentRecord.start_date)) == request.date,
func.date(func.date_trunc('month', PaymentRecord.end_date)) == request.date,