Added invoice and invoice detail pages. Begin work on paginated invoices page.
This commit is contained in:
@@ -10,6 +10,32 @@ export const INSERT_NEW_INVOICE = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_ALL_INVOICES_PAGINATED = gql`
|
||||
query QUERY_ALL_INVOICES_PAGINATED($offset: Int, $limit: Int) {
|
||||
invoices(offset: $offset, limit: $limit, order_by: { date: desc }) {
|
||||
id
|
||||
vendor {
|
||||
id
|
||||
name
|
||||
}
|
||||
total
|
||||
invoice_number
|
||||
date
|
||||
job {
|
||||
id
|
||||
ro_number
|
||||
}
|
||||
invoicelines {
|
||||
actual_price
|
||||
actual_cost
|
||||
cost_center
|
||||
id
|
||||
line_desc
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_INVOICES_BY_JOBID = gql`
|
||||
query QUERY_INVOICES_BY_JOBID($jobid: uuid!) {
|
||||
invoices(where: { jobid: { _eq: $jobid } }, order_by: { date: desc }) {
|
||||
|
||||
Reference in New Issue
Block a user