Added ordering invoice as in house BOD-101

This commit is contained in:
Patrick Fic
2020-05-11 13:41:58 -07:00
parent 3af8b28764
commit fc4e07bb32
28 changed files with 631 additions and 50 deletions

View File

@@ -25,7 +25,7 @@ function VendorsFormContainer({ selectedVendor, refetch, bodyshop }) {
const { loading, error, data } = useQuery(QUERY_VENDOR_BY_ID, {
variables: { id: (selectedVendor && selectedVendor.id) || null },
fetchPolicy: "network-only",
skip: !selectedVendor
skip: !!!selectedVendor
});
const [updateVendor] = useMutation(UPDATE_VENDOR);
const [insertvendor] = useMutation(INSERT_NEW_VENDOR);