Created export payables screen + basic invoice exporting BOD-139
This commit is contained in:
@@ -27,3 +27,19 @@ export const QUERY_JOBS_FOR_EXPORT = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const QUERY_INVOICES_FOR_EXPORT = gql`
|
||||
query QUERY_INVOICES_FOR_EXPORT {
|
||||
invoices(where: { exported: { _eq: false } }) {
|
||||
id
|
||||
exported
|
||||
date
|
||||
invoice_number
|
||||
total
|
||||
vendor {
|
||||
name
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -129,6 +129,8 @@ export const UPDATE_INVOICE = gql`
|
||||
update_invoices(where: { id: { _eq: $invoiceId } }, _set: $invoice) {
|
||||
returning {
|
||||
id
|
||||
exported
|
||||
exported_at
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user