Issues resolved with Bill Enter Modal IO-480
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user