modifications queries, mutations of contact, recentPayment, shiftRole, teamhub
This commit is contained in:
@@ -348,3 +348,70 @@ query listRecentPaymentsByInvoiceIds(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# LIST BY BUSINESS ID (direct)
|
||||
# ------------------------------------------------------------
|
||||
query listRecentPaymentsByBusinessId(
|
||||
$businessId: UUID!
|
||||
$offset: Int
|
||||
$limit: Int
|
||||
) @auth(level: USER) {
|
||||
recentPayments(
|
||||
where: {
|
||||
invoice: {
|
||||
businessId: { eq: $businessId }
|
||||
}
|
||||
}
|
||||
offset: $offset
|
||||
limit: $limit
|
||||
orderBy: { createdAt: DESC }
|
||||
) {
|
||||
id
|
||||
workedTime
|
||||
status
|
||||
staffId
|
||||
applicationId
|
||||
invoiceId
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy
|
||||
|
||||
application {
|
||||
id
|
||||
staffId
|
||||
checkInTime
|
||||
checkOutTime
|
||||
shiftRole {
|
||||
startTime
|
||||
endTime
|
||||
hours
|
||||
totalValue
|
||||
|
||||
role { id name costPerHour }
|
||||
|
||||
shift {
|
||||
id
|
||||
title
|
||||
date
|
||||
location
|
||||
locationAddress
|
||||
description
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
invoice {
|
||||
id
|
||||
invoiceNumber
|
||||
status
|
||||
issueDate
|
||||
dueDate
|
||||
amount
|
||||
|
||||
business { id businessName }
|
||||
vendor { id companyName }
|
||||
order { id eventName location }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user