feat: toggle for sms receipt
This commit is contained in:
parent
8128f05ffb
commit
938ca64131
1 changed files with 22 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ const ReceiptPrinting = memo(({ wizard }) => {
|
||||||
<H4>Receipt options</H4>
|
<H4>Receipt options</H4>
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.switchRow}>
|
<div className={classes.switchRow}>
|
||||||
<P>Enable receipt printing?</P>
|
<P>Enable receipt printing</P>
|
||||||
<div className={classes.switch}>
|
<div className={classes.switch}>
|
||||||
<Switch
|
<Switch
|
||||||
checked={receiptPrintingConfig.active}
|
checked={receiptPrintingConfig.active}
|
||||||
|
|
@ -69,6 +69,27 @@ const ReceiptPrinting = memo(({ wizard }) => {
|
||||||
<Label2>{receiptPrintingConfig.active ? 'Yes' : 'No'}</Label2>
|
<Label2>{receiptPrintingConfig.active ? 'Yes' : 'No'}</Label2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className={classes.switchRow}>
|
||||||
|
<P>Offer SMS receipt</P>
|
||||||
|
<div className={classes.switch}>
|
||||||
|
<Switch
|
||||||
|
checked={receiptPrintingConfig.sms}
|
||||||
|
onChange={event =>
|
||||||
|
saveConfig({
|
||||||
|
variables: {
|
||||||
|
config: toNamespace(
|
||||||
|
namespaces.RECEIPT,
|
||||||
|
R.merge(receiptPrintingConfig, {
|
||||||
|
sms: event.target.checked
|
||||||
|
})
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
<Label2>{receiptPrintingConfig.sms ? 'Yes' : 'No'}</Label2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<BooleanPropertiesTable
|
<BooleanPropertiesTable
|
||||||
editing={wizard}
|
editing={wizard}
|
||||||
title={'Visible on the receipt (options)'}
|
title={'Visible on the receipt (options)'}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue