preference fix
This commit is contained in:
parent
13dd50a1ea
commit
3e9b910616
|
|
@ -119,7 +119,7 @@ const PreferenceList = () => {
|
||||||
],
|
],
|
||||||
scanlayout: allSettingsMap['scanlayout']?.value === 'Y',
|
scanlayout: allSettingsMap['scanlayout']?.value === 'Y',
|
||||||
verifyproduct: allSettingsMap['verifyproduct']?.value === 'Y',
|
verifyproduct: allSettingsMap['verifyproduct']?.value === 'Y',
|
||||||
imeidetails:allSettingsMap['imeidetails']?.value === 'Y',
|
imeidetails: allSettingsMap['imeidetails']?.value === 'Y',
|
||||||
customisedbillnumber: allSettingsMap['customisedbillnumber']?.value === 'Y',
|
customisedbillnumber: allSettingsMap['customisedbillnumber']?.value === 'Y',
|
||||||
upiqr: allSettingsMap['upiqr']?.value === 'Y',
|
upiqr: allSettingsMap['upiqr']?.value === 'Y',
|
||||||
lowstockreport: allSettingsMap['lowstockreport']?.value === 'Y',
|
lowstockreport: allSettingsMap['lowstockreport']?.value === 'Y',
|
||||||
|
|
@ -323,7 +323,7 @@ const PreferenceList = () => {
|
||||||
mobilea4: values.mobilea4,
|
mobilea4: values.mobilea4,
|
||||||
scanlayout: values.scanlayout,
|
scanlayout: values.scanlayout,
|
||||||
verifyproduct: values.verifyproduct,
|
verifyproduct: values.verifyproduct,
|
||||||
imeidetails:values.imeidetails,
|
imeidetails: values.imeidetails,
|
||||||
customisedbillnumber: values.customisedbillnumber,
|
customisedbillnumber: values.customisedbillnumber,
|
||||||
upiqr: values.upiqr,
|
upiqr: values.upiqr,
|
||||||
lowstockreport: values.lowstockreport,
|
lowstockreport: values.lowstockreport,
|
||||||
|
|
@ -549,8 +549,12 @@ const PreferenceList = () => {
|
||||||
<>
|
<>
|
||||||
<Form.Item name="kiosktimelimittype" label="How would you like to apply the time restriction?">
|
<Form.Item name="kiosktimelimittype" label="How would you like to apply the time restriction?">
|
||||||
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxtime: undefined })}>
|
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxtime: undefined })}>
|
||||||
<Radio value="minutes">Minutes</Radio>
|
{allSettingsMap['minutes'] !== undefined && (
|
||||||
<Radio value="hours">Hours</Radio>
|
<Radio value="minutes">Minutes</Radio>
|
||||||
|
)}
|
||||||
|
{allSettingsMap['hours'] !== undefined && (
|
||||||
|
<Radio value="hours">Hours</Radio>
|
||||||
|
)}
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
|
@ -739,8 +743,12 @@ const PreferenceList = () => {
|
||||||
<>
|
<>
|
||||||
<Form.Item name="quantityrestrictiontype" label="How would you like to apply the quantity restriction?">
|
<Form.Item name="quantityrestrictiontype" label="How would you like to apply the quantity restriction?">
|
||||||
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxquantity: undefined })}>
|
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxquantity: undefined })}>
|
||||||
<Radio value="overall">Overall Order Quantity</Radio>
|
{allSettingsMap['overalllimit'] !== undefined && (
|
||||||
<Radio value="itemwise">Item-wise Quantity</Radio>
|
<Radio value="overall">Overall Order Quantity</Radio>
|
||||||
|
)}
|
||||||
|
{allSettingsMap['itemwiselimit'] !== undefined && (
|
||||||
|
<Radio value="itemwise">Item-wise Quantity</Radio>
|
||||||
|
)}
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue