Refactor billing data parsing and filtering, update invoice queries, and remove the dedicated timesheets page.

This commit is contained in:
Achintha Isuru
2026-02-28 15:26:05 -05:00
parent 119b6cc000
commit 8c0708d2d3
8 changed files with 414 additions and 286 deletions

View File

@@ -61,6 +61,29 @@ query listInvoices(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -123,6 +146,29 @@ query getInvoiceById($id: UUID!) @auth(level: USER) {
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -194,6 +240,29 @@ query listInvoicesByVendorId(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -265,6 +334,29 @@ query listInvoicesByBusinessId(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -336,6 +428,29 @@ query listInvoicesByOrderId(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -407,6 +522,29 @@ query listInvoicesByStatus(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -501,6 +639,29 @@ query filterInvoices(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}
@@ -576,5 +737,28 @@ query listOverdueInvoices(
}
}
shift {
id
title
applications_on_shift {
id
status
checkInTime
checkOutTime
staff {
fullName
photoUrl
}
shiftRole {
role {
name
}
totalValue
hours
breakType
}
}
}
}
}