Added vendor and RO search to enter invoice modal.

This commit is contained in:
Patrick Fic
2020-02-26 10:22:56 -08:00
parent 7335a555c2
commit 7d79bb2689
9 changed files with 398 additions and 12 deletions

View File

@@ -76,3 +76,14 @@ export const QUERY_ALL_VENDORS_FOR_ORDER = gql`
}
}
`;
export const SEARCH_VENDOR_AUTOCOMPLETE = gql`
query SEARCH_VENDOR_AUTOCOMPLETE($search: String!) {
vendors(where: { name: { _ilike: $search } }) {
name
discount
id
cost_center
}
}
`;