IO-920 Required referral fields.

This commit is contained in:
Patrick Fic
2021-04-26 15:32:16 -07:00
parent e8db267a18
commit a408de0b90
16 changed files with 399 additions and 10 deletions

View File

@@ -94,6 +94,26 @@ export function JobsConvertButton({ bodyshop, job, refetch, jobRO }) {
</Select>
</Form.Item>
)}
{bodyshop.enforce_referral && (
<Form.Item
name={"referral_source"}
label={t("jobs.fields.referralsource")}
rules={[
{
required: bodyshop.enforce_referral,
message: t("general.validation.required"),
},
]}
>
<Select>
{bodyshop.md_referral_sources.map((s) => (
<Select.Option key={s} value={s}>
{s}
</Select.Option>
))}
</Select>
</Form.Item>
)}
<Form.Item
label={t("jobs.fields.ca_gst_registrant")}
name="ca_gst_registrant"