Added DineIn Preference
This commit is contained in:
parent
b92f2fdb80
commit
727f042abe
|
|
@ -94,6 +94,7 @@ const PreferenceList = ({ setting = false }) => {
|
||||||
...(allSettingsMap['parking']?.value === 'Y' ? ['parking'] : []),
|
...(allSettingsMap['parking']?.value === 'Y' ? ['parking'] : []),
|
||||||
...(allSettingsMap['offer']?.value === 'Y' ? ['offer'] : []),
|
...(allSettingsMap['offer']?.value === 'Y' ? ['offer'] : []),
|
||||||
],
|
],
|
||||||
|
chairlevel: allSettingsMap['chairlevel']?.value === 'Y',
|
||||||
stockselection: allSettingsMap['stockselection']?.value === 'Y',
|
stockselection: allSettingsMap['stockselection']?.value === 'Y',
|
||||||
weightasquantity: allSettingsMap['weightasquantity']?.value === 'Y',
|
weightasquantity: allSettingsMap['weightasquantity']?.value === 'Y',
|
||||||
expiredselection: allSettingsMap['expiredselection']?.value === 'Y',
|
expiredselection: allSettingsMap['expiredselection']?.value === 'Y',
|
||||||
|
|
@ -369,6 +370,7 @@ const PreferenceList = ({ setting = false }) => {
|
||||||
searchfocus: values.searchfocus,
|
searchfocus: values.searchfocus,
|
||||||
addproductcard: values.addproductcard,
|
addproductcard: values.addproductcard,
|
||||||
stockselection: values.stockselection,
|
stockselection: values.stockselection,
|
||||||
|
chairlevel: values.chairlevel,
|
||||||
weightasquantity: values.weightasquantity,
|
weightasquantity: values.weightasquantity,
|
||||||
expiredselection: values.expiredselection,
|
expiredselection: values.expiredselection,
|
||||||
'sales mode': values?.['salesmode'],
|
'sales mode': values?.['salesmode'],
|
||||||
|
|
@ -893,7 +895,7 @@ const userDropData = async () => {
|
||||||
</Checkbox.Group>
|
</Checkbox.Group>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
)}
|
)}
|
||||||
|
{(allSettingsMap['dinein'] !== undefined && dinePreference) && renderCheckbox('chairlevel', 'Enable Dine In Chair Level Serve?')}
|
||||||
{renderCheckbox('stockselection', 'Enable stock selection?')}
|
{renderCheckbox('stockselection', 'Enable stock selection?')}
|
||||||
{renderCheckbox('weightasquantity', 'Use Weight as Quantity?')}
|
{renderCheckbox('weightasquantity', 'Use Weight as Quantity?')}
|
||||||
{renderCheckbox('expiredselection', 'Show product expiry date?')}
|
{renderCheckbox('expiredselection', 'Show product expiry date?')}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue