Issues resolved with Bill Enter Modal IO-480

This commit is contained in:
Patrick Fic
2021-02-04 19:11:00 -08:00
parent 69ac212f0c
commit 89d59d256c
13 changed files with 52 additions and 47 deletions

View File

@@ -30,7 +30,7 @@ export const QUERY_JOBS_FOR_EXPORT = gql`
export const QUERY_BILLS_FOR_EXPORT = gql`
query QUERY_BILLS_FOR_EXPORT {
bills(where: { exported: { _eq: false } }) {
bills(where: { exported: { _eq: false }, isinhouse: { _eq: false } }) {
id
exported
date

View File

@@ -129,36 +129,6 @@ export const QUERY_BILLS_BY_JOBID = gql`
}
`;
// export const QUERY_INVOICES_BY_VENDOR_PAGINATED = gql`
// query QUERY_INVOICES_BY_VENDOR_PAGINATED(
// $vendorId: uuid!
// $offset: Int
// $limit: Int
// $order: [invoices_order_by!]!
// ) {
// invoices(
// where: { vendorid: { _eq: $vendorId } }
// offset: $offset
// limit: $limit
// order_by: $order
// ) {
// id
// job {
// id
// ro_number
// }
// total
// invoice_number
// date
// }
// invoices_aggregate(where: { vendorid: { _eq: $vendorId } }) {
// aggregate {
// count(distinct: true)
// }
// }
// }
// `;
export const QUERY_BILL_BY_PK = gql`
query QUERY_BILL_BY_PK($billid: uuid!) {
bills_by_pk(id: $billid) {
@@ -238,6 +208,9 @@ export const CHECK_BILL_INVOICE_NUMBER = gql`
aggregate {
count
}
nodes {
id
}
}
}
`;