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
|
|
@ -26,7 +26,7 @@ const widthsByNumberOfCassettes = {
|
|||
const ValidationSchema = Yup.object().shape({
|
||||
name: Yup.string().required('Required'),
|
||||
cashbox: Yup.number()
|
||||
.label('Cashbox')
|
||||
.label('Cash box')
|
||||
.required()
|
||||
.integer()
|
||||
.min(0)
|
||||
|
|
@ -101,7 +101,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
|
|||
const elements = [
|
||||
{
|
||||
name: 'cashbox',
|
||||
header: 'Cashbox',
|
||||
header: 'Cash box',
|
||||
width: widthsByNumberOfCassettes[numberOfCassettes].cashbox,
|
||||
stripe: false,
|
||||
view: value => (
|
||||
|
|
@ -119,7 +119,7 @@ const CashCassettes = ({ machine, config, refetchData }) => {
|
|||
it => {
|
||||
elements.push({
|
||||
name: `cassette${it}`,
|
||||
header: `Cash-out ${it}`,
|
||||
header: `Cash cassette ${it}`,
|
||||
width: widthsByNumberOfCassettes[numberOfCassettes].cassette,
|
||||
stripe: true,
|
||||
doubleHeader: 'Cash-out',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue