-
{
setInvoiceEnterContext({
actions: { refetch: null },
@@ -35,7 +36,7 @@ export default connect(
}}
>
Enter Invoice
-
+
);
});
diff --git a/client/src/graphql/jobs.queries.js b/client/src/graphql/jobs.queries.js
index ba32b39ab..f402d6278 100644
--- a/client/src/graphql/jobs.queries.js
+++ b/client/src/graphql/jobs.queries.js
@@ -333,3 +333,20 @@ export const UPDATE_JOB_STATUS = gql`
}
}
`;
+
+export const SEARCH_RO_AUTOCOMPLETE = gql`
+ query SEARCH_RO_AUTOCOMPLETE($search: String!) {
+ jobs(where: { ro_number: { _ilike: $search } }) {
+ id
+ ownr_fn
+ ownr_ln
+ ro_number
+ vehicle {
+ id
+ v_make_desc
+ v_model_desc
+ v_model_yr
+ }
+ }
+ }
+`;
diff --git a/client/src/graphql/vendors.queries.js b/client/src/graphql/vendors.queries.js
index 4cf45ebd6..bf61bc670 100644
--- a/client/src/graphql/vendors.queries.js
+++ b/client/src/graphql/vendors.queries.js
@@ -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
+ }
+ }
+`;
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index abee6521b..8bc222578 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -144,6 +144,22 @@
"required": "This field is required. "
}
},
+ "invoices": {
+ "errors": {
+ "invalidro": "Not a valid RO.",
+ "invalidvendor": "Not a valid vendor."
+ },
+ "fields": {
+ "date": "Invoice Date",
+ "invoice_number": "Invoice Number",
+ "is_credit_memo": "Credit Memo?",
+ "ro_number": "RO Number",
+ "vendor": "Vendor"
+ },
+ "labels": {
+ "new": "New Invoice"
+ }
+ },
"joblines": {
"actions": {
"new": "New Line"
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index b5a22f871..accf712d2 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -144,6 +144,22 @@
"required": "Este campo es requerido."
}
},
+ "invoices": {
+ "errors": {
+ "invalidro": "",
+ "invalidvendor": ""
+ },
+ "fields": {
+ "date": "",
+ "invoice_number": "",
+ "is_credit_memo": "",
+ "ro_number": "",
+ "vendor": ""
+ },
+ "labels": {
+ "new": ""
+ }
+ },
"joblines": {
"actions": {
"new": ""
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index df942272d..ca3ce145a 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -144,6 +144,22 @@
"required": "Ce champ est requis."
}
},
+ "invoices": {
+ "errors": {
+ "invalidro": "",
+ "invalidvendor": ""
+ },
+ "fields": {
+ "date": "",
+ "invoice_number": "",
+ "is_credit_memo": "",
+ "ro_number": "",
+ "vendor": ""
+ },
+ "labels": {
+ "new": ""
+ }
+ },
"joblines": {
"actions": {
"new": ""