Added inhouse vendor id to shop info page IO-438

This commit is contained in:
Patrick Fic
2020-12-08 11:48:54 -08:00
parent f3d3a30f77
commit 31a809629d
10 changed files with 108 additions and 70 deletions

View File

@@ -79,7 +79,7 @@ export function BillFormComponent({
<JobSearchSelect
disabled={billEdit || disabled}
convertedOnly
// notExported={false}
// notExported={false}
onBlur={() => {
if (form.getFieldValue("jobid") !== null) {
loadLines({ variables: { id: form.getFieldValue("jobid") } });
@@ -120,7 +120,7 @@ export function BillFormComponent({
({ getFieldValue }) => ({
async validator(rule, value) {
const vendorid = getFieldValue("vendorid");
if (vendorid) {
if (vendorid && value) {
const response = await client.query({
query: CHECK_BILL_INVOICE_NUMBER,
variables: {