refactor: use uniform cash box & cash cassette nomenclature
This commit is contained in:
parent
3213513f54
commit
2fed3a99f2
8 changed files with 26 additions and 22 deletions
|
|
@ -162,14 +162,14 @@ const WizardStep = ({
|
||||||
|
|
||||||
{lastStep && (
|
{lastStep && (
|
||||||
<div className={classes.disclaimer}>
|
<div className={classes.disclaimer}>
|
||||||
<Info2 className={classes.title}>Cash-out Bill Count</Info2>
|
<Info2 className={classes.title}>Cash Cassette Bill Count</Info2>
|
||||||
<P>
|
<P>
|
||||||
<WarningIcon className={classes.disclaimerIcon} />
|
<WarningIcon className={classes.disclaimerIcon} />
|
||||||
When enabling cash-out, your bill count will be automatically set to
|
When enabling cash-out, your bill count will be automatically set to
|
||||||
zero. Make sure you physically put cash inside the cash cassettes to
|
zero. Make sure you physically put cash inside the cash cassettes to
|
||||||
allow the machine to dispense it to your users. If you already did,
|
allow the machine to dispense it to your users. If you already did,
|
||||||
make sure you set the correct cash-out bill count for this machine
|
make sure you set the correct cash cassette bill count for this
|
||||||
on your Cash Cassettes tab under Maintenance.
|
machine on your Cash Boxes & Cassettes tab under Maintenance.
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
<Info2 className={classes.title}>Default Commissions</Info2>
|
<Info2 className={classes.title}>Default Commissions</Info2>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const widthsByNumberOfCassettes = {
|
||||||
const ValidationSchema = Yup.object().shape({
|
const ValidationSchema = Yup.object().shape({
|
||||||
name: Yup.string().required('Required'),
|
name: Yup.string().required('Required'),
|
||||||
cashbox: Yup.number()
|
cashbox: Yup.number()
|
||||||
.label('Cashbox')
|
.label('Cash box')
|
||||||
.required()
|
.required()
|
||||||
.integer()
|
.integer()
|
||||||
.min(0)
|
.min(0)
|
||||||
|
|
@ -101,7 +101,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
|
||||||
const elements = [
|
const elements = [
|
||||||
{
|
{
|
||||||
name: 'cashbox',
|
name: 'cashbox',
|
||||||
header: 'Cashbox',
|
header: 'Cash box',
|
||||||
width: widthsByNumberOfCassettes[numberOfCassettes].cashbox,
|
width: widthsByNumberOfCassettes[numberOfCassettes].cashbox,
|
||||||
stripe: false,
|
stripe: false,
|
||||||
view: value => (
|
view: value => (
|
||||||
|
|
@ -119,7 +119,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
|
||||||
it => {
|
it => {
|
||||||
elements.push({
|
elements.push({
|
||||||
name: `cassette${it}`,
|
name: `cassette${it}`,
|
||||||
header: `Cash-out ${it}`,
|
header: `Cash cassette ${it}`,
|
||||||
width: widthsByNumberOfCassettes[numberOfCassettes].cassette,
|
width: widthsByNumberOfCassettes[numberOfCassettes].cassette,
|
||||||
stripe: true,
|
stripe: true,
|
||||||
doubleHeader: 'Cash-out',
|
doubleHeader: 'Cash-out',
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ const Machines = () => {
|
||||||
<Details data={machine} timezone={timezone} />
|
<Details data={machine} timezone={timezone} />
|
||||||
</div>
|
</div>
|
||||||
<div className={classes.detailItem}>
|
<div className={classes.detailItem}>
|
||||||
<TL1 className={classes.subtitle}>{'Cash cassettes'}</TL1>
|
<TL1 className={classes.subtitle}>{'Cash box & cassettes'}</TL1>
|
||||||
<Cassettes
|
<Cassettes
|
||||||
refetchData={refetch}
|
refetchData={refetch}
|
||||||
machine={machine}
|
machine={machine}
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ const useStyles = makeStyles(styles)
|
||||||
const ValidationSchema = Yup.object().shape({
|
const ValidationSchema = Yup.object().shape({
|
||||||
name: Yup.string().required(),
|
name: Yup.string().required(),
|
||||||
cashbox: Yup.number()
|
cashbox: Yup.number()
|
||||||
.label('Cashbox')
|
.label('Cash box')
|
||||||
.required()
|
.required()
|
||||||
.integer()
|
.integer()
|
||||||
.min(0)
|
.min(0)
|
||||||
|
|
@ -204,7 +204,7 @@ const CashCassettes = () => {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'cashbox',
|
name: 'cashbox',
|
||||||
header: 'Cash-in',
|
header: 'Cash box',
|
||||||
width: maxNumberOfCassettes > 2 ? 140 : 280,
|
width: maxNumberOfCassettes > 2 ? 140 : 280,
|
||||||
view: value => (
|
view: value => (
|
||||||
<CashIn currency={{ code: fiatCurrency }} notes={value} total={0} />
|
<CashIn currency={{ code: fiatCurrency }} notes={value} total={0} />
|
||||||
|
|
@ -270,9 +270,9 @@ const CashCassettes = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<TitleSection
|
<TitleSection
|
||||||
title="Cash Cassettes"
|
title="Cash Boxes & Cassettes"
|
||||||
button={{
|
button={{
|
||||||
text: 'Cashbox history',
|
text: 'Cash box history',
|
||||||
icon: HistoryIcon,
|
icon: HistoryIcon,
|
||||||
inverseIcon: ReverseHistoryIcon,
|
inverseIcon: ReverseHistoryIcon,
|
||||||
toggle: setShowHistory
|
toggle: setShowHistory
|
||||||
|
|
|
||||||
|
|
@ -96,14 +96,18 @@ const CashboxHistory = ({ machines, currency }) => {
|
||||||
`cash-cassette-${i}-refill`,
|
`cash-cassette-${i}-refill`,
|
||||||
<>
|
<>
|
||||||
<TxOutIcon />
|
<TxOutIcon />
|
||||||
<span className={classes.operationType}>Cash-out {i} refill</span>
|
<span className={classes.operationType}>
|
||||||
|
Cash cassette {i} refill
|
||||||
|
</span>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
R.assoc(
|
R.assoc(
|
||||||
`cash-cassette-${i}-empty`,
|
`cash-cassette-${i}-empty`,
|
||||||
<>
|
<>
|
||||||
<TxOutIcon />
|
<TxOutIcon />
|
||||||
<span className={classes.operationType}>Cash-out {i} emptied</span>
|
<span className={classes.operationType}>
|
||||||
|
Cash cassette {i} emptied
|
||||||
|
</span>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
)(ret),
|
)(ret),
|
||||||
|
|
@ -111,7 +115,7 @@ const CashboxHistory = ({ machines, currency }) => {
|
||||||
'cash-box-empty': (
|
'cash-box-empty': (
|
||||||
<>
|
<>
|
||||||
<TxInIcon />
|
<TxInIcon />
|
||||||
<span className={classes.operationType}>Cash-in emptied</span>
|
<span className={classes.operationType}>Cash box emptied</span>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
|
@ -254,7 +258,7 @@ const CashboxHistory = ({ machines, currency }) => {
|
||||||
name="cashboxHistory"
|
name="cashboxHistory"
|
||||||
elements={elements}
|
elements={elements}
|
||||||
data={batches}
|
data={batches}
|
||||||
emptyText="No cashbox batches so far"
|
emptyText="No cash box batches so far"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ const WizardSplash = ({ name, onContinue }) => {
|
||||||
<div className={classes.warningInfo}>
|
<div className={classes.warningInfo}>
|
||||||
<WarningIcon className={classes.warningIcon} />
|
<WarningIcon className={classes.warningIcon} />
|
||||||
<P noMargin className={classes.warningText}>
|
<P noMargin className={classes.warningText}>
|
||||||
For cash-out cassettes, please make sure you've removed the remaining
|
For cash cassettes, please make sure you've removed the remaining
|
||||||
bills before adding the new ones.
|
bills before adding the new ones.
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ const WizardStep = ({
|
||||||
classes.verticalAlign,
|
classes.verticalAlign,
|
||||||
classes.fullWidth
|
classes.fullWidth
|
||||||
)}>
|
)}>
|
||||||
<H4 noMargin>Did you empty the cash-in box?</H4>
|
<H4 noMargin>Did you empty the cash box?</H4>
|
||||||
<Field
|
<Field
|
||||||
component={RadioGroup}
|
component={RadioGroup}
|
||||||
name="wasCashboxEmptied"
|
name="wasCashboxEmptied"
|
||||||
|
|
@ -188,8 +188,8 @@ const WizardStep = ({
|
||||||
<P>Since previous update</P>
|
<P>Since previous update</P>
|
||||||
<Tooltip width={215}>
|
<Tooltip width={215}>
|
||||||
<P>
|
<P>
|
||||||
Number of bills inside the cashbox, since the last
|
Number of bills inside the cash box, since the last
|
||||||
cashbox changes.
|
cash box changes.
|
||||||
</P>
|
</P>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -255,7 +255,7 @@ const WizardStep = ({
|
||||||
<H4
|
<H4
|
||||||
className={classes.cassetteFormTitleContent}
|
className={classes.cassetteFormTitleContent}
|
||||||
noMargin>
|
noMargin>
|
||||||
Cash-out {step - 1} (dispenser)
|
Cash cassette {step - 1} (dispenser)
|
||||||
</H4>
|
</H4>
|
||||||
</div>
|
</div>
|
||||||
<Cashbox
|
<Cashbox
|
||||||
|
|
|
||||||
|
|
@ -131,10 +131,10 @@ const FiatBalanceOverrides = ({ section }) => {
|
||||||
it => {
|
it => {
|
||||||
elements.push({
|
elements.push({
|
||||||
name: `fillingPercentageCassette${it}`,
|
name: `fillingPercentageCassette${it}`,
|
||||||
display: `Cash-out ${it}`,
|
display: `Cash cassette ${it}`,
|
||||||
width: 155,
|
width: 155,
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
doubleHeader: 'Cash-out (Cassette Empty)',
|
doubleHeader: 'Cash Cassette Empty',
|
||||||
bold: true,
|
bold: true,
|
||||||
input: NumberInput,
|
input: NumberInput,
|
||||||
suffix: '%',
|
suffix: '%',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue