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

@@ -2720,6 +2720,27 @@
</translation>
</translations>
</concept_node>
<concept_node>
<name>inhousevendorid</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>insurance_vendor_id</name>
<definition_loaded>false</definition_loaded>

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: {

View File

@@ -32,7 +32,7 @@ export default function HelpRescue() {
>
<span>
Enter your six-digit code, then click the Start Download button
below{" "}
below
</span>
<input type="text" name="Code" />
<br />

View File

@@ -11,7 +11,7 @@ export default function JobsDetailChecklists({ job }) {
<JobChecklistDisplay checklist={job.intakechecklist} />
</Col>
<Col {...colSpan}>
{" "}
<JobChecklistDisplay checklist={job.deliverchecklist} />
</Col>
</Row>

View File

@@ -55,8 +55,8 @@ export function PrintCenterJobsComponent({ bodyshop, printCenterModal }) {
disabled={item.disabled}
/>
)
)}{" "}
</ul>{" "}
)}
</ul>
</Collapse.Panel>
</Collapse>
</Col>

View File

@@ -205,7 +205,7 @@ export default function ShopInfoComponent({ form, saveLoading }) {
},
]}
>
<InputNumberCalculator min={0} precision={0} />
<InputNumber min={0} precision={0} />
</Form.Item>
<Form.Item
@@ -218,7 +218,7 @@ export default function ShopInfoComponent({ form, saveLoading }) {
},
]}
>
<InputNumberCalculator min={0} precision={0} />
<InputNumber min={0} precision={0} />
</Form.Item>
<Form.Item
@@ -243,7 +243,7 @@ export default function ShopInfoComponent({ form, saveLoading }) {
},
]}
>
<InputNumberCalculator min={1} precision={1} />
<InputNumber min={1} precision={1} />
</Form.Item>
<Form.Item
name={["md_referral_sources"]}
@@ -273,6 +273,19 @@ export default function ShopInfoComponent({ form, saveLoading }) {
<Radio value={3}>3</Radio>
</Radio.Group>
</Form.Item>
<Form.Item
label={t("bodyshop.fields.inhousevendorid")}
name={"inhousevendorid"}
rules={[
{
required: true,
message: t("general.validation.required"),
},
]}
>
<Input />
</Form.Item>
<Form.Item shouldUpdate>
{() => {
return (
@@ -494,65 +507,67 @@ export default function ShopInfoComponent({ form, saveLoading }) {
);
}}
</Form.List>
<Form.Item
name={["md_classes"]}
label={t("bodyshop.fields.md_classes")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["md_categories"]}
label={t("bodyshop.fields.md_categories")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["md_ins_cos"]}
label={t("bodyshop.fields.md_ins_cos")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["enforce_class"]}
label={t("bodyshop.fields.enforce_class")}
valuePropName="checked"
>
<Switch />
</Form.Item>
<Form.Item
name={["target_touchtime"]}
label={t("bodyshop.fields.target_touchtime")}
rules={[
{
required: true,
message: t("general.validation.required"),
},
]}
>
<InputNumberCalculator min={0.1} precision={1} />
</Form.Item>
<LayoutFormRow>
<Form.Item
name={["md_classes"]}
label={t("bodyshop.fields.md_classes")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["md_categories"]}
label={t("bodyshop.fields.md_categories")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["md_ins_cos"]}
label={t("bodyshop.fields.md_ins_cos")}
rules={[
{
required: true,
message: t("general.validation.required"),
type: "array",
},
]}
>
<Select mode="tags" />
</Form.Item>
<Form.Item
name={["enforce_class"]}
label={t("bodyshop.fields.enforce_class")}
valuePropName="checked"
>
<Switch />
</Form.Item>
<Form.Item
name={["target_touchtime"]}
label={t("bodyshop.fields.target_touchtime")}
rules={[
{
required: true,
message: t("general.validation.required"),
},
]}
>
<InputNumber min={0.1} precision={1} />
</Form.Item>
</LayoutFormRow>
</Collapse.Panel>
<Collapse.Panel
key="speedprint"

View File

@@ -23,7 +23,6 @@ export default function VendorsFormComponent({
handleDelete,
responsibilityCenters,
}) {
console.log("🚀 ~ file: vendors-form.component.jsx ~ line 26 ~ formLoading", formLoading)
const { t } = useTranslation();
const { getFieldValue } = form;
return (
@@ -113,7 +112,7 @@ export default function VendorsFormComponent({
label={t("vendors.fields.prompt_discount")}
name="prompt_discount"
>
<InputNumberCalculator />
<InputNumber max={1} precision={2} />
</Form.Item>
<Form.Item
label={t("vendors.fields.cost_center")}

View File

@@ -185,6 +185,7 @@
"email": "General Shop Email",
"enforce_class": "Enforce Class on Conversion?",
"federal_tax_id": "Federal Tax ID (GST/HST)",
"inhousevendorid": "In House Vendor ID",
"insurance_vendor_id": "Insurance Vendor ID",
"lastnumberworkingdays": "Scoreboard - Last Number of Working Days",
"logo_img_path": "Shop Logo",

View File

@@ -185,6 +185,7 @@
"email": "",
"enforce_class": "",
"federal_tax_id": "",
"inhousevendorid": "",
"insurance_vendor_id": "",
"lastnumberworkingdays": "",
"logo_img_path": "",

View File

@@ -185,6 +185,7 @@
"email": "",
"enforce_class": "",
"federal_tax_id": "",
"inhousevendorid": "",
"insurance_vendor_id": "",
"lastnumberworkingdays": "",
"logo_img_path": "",