Aller au contenu principal

Reason Codes

A reason code is a question the register asks the operator at a defined moment, and the answer is kept with the transaction. They explain what would otherwise be a bare number in the journal: why a price was changed, why a customer returned an item, why the drawer was opened without a sale.

You define the questions here. Each store then chooses which question the register asks at which moment, on the Register tab of its record page, under Reason code prompts.

An example​

CodeNamePromptAnswer
PRICEPrice changeWhy is the price changed?Choose a sub code
RETURNReturnWhy is the item returned?Choose a sub code
NOSALEDrawer openedWhy is the drawer opened?Text
LOYALTYLoyalty numberEnter the loyalty card numberNumber

PRICE would have the sub codes DAMAGED (Damaged goods), MATCH (Matching a competitor) and MANAGER (Manager decision), so the operator picks from a short list instead of typing.

Opening the page​

Go to Commerce > Setup > Reason codes.

You need the privilege read the Commerce setup to see the page and create the Commerce setup to add, change or delete reason codes (see Roles).

What you see​

ColumnMeaning
Code1 to 10 letters, digits or hyphens. Saved in capital letters, unique and fixed once saved.
NameWhat the code is called in the lists. Up to 60 characters.
Prompt shown to the operatorThe question on the register screen. Up to 120 characters.
AnswerWhat the operator answers with (see below).
Answer requiredThe operator cannot continue without answering. When off, the question may be skipped.
Ask once per transactionThe question is asked the first time it applies in a transaction and not again for that transaction.
Sub codesFor a code whose answer is Choose a sub code: opens the list of answers. Shows how many there are.
ActiveAn inactive reason code is not offered to the stores and not asked by registers.

The answers​

AnswerWhat the operator does
Confirmation onlyReads the prompt and confirms. Nothing is typed.
Choose a sub codePicks one of the code's sub codes.
TextTypes free text.
NumberTypes a number.
AmountTypes an amount of money.
DatePicks a date.

Adding a reason code​

  1. Select New.
  2. Type a Code, a Name and the Prompt, and choose the Answer.
  3. Tick Answer required and Ask once per transaction as needed.
  4. Select Save.
  5. If the answer is Choose a sub code, select the Sub codes button on the saved row and add the answers (below).

Sub codes​

Select Sub codes on a reason code whose answer is Choose a sub code. A dialog lists the answers; each has a Code (1 to 10 letters, digits or hyphens, saved in capitals) and a Name (up to 60 characters). Use Add a sub code and the bin icon, then Save. The dialog saves the whole list at once.

Rules:

  • A code appears only once in the list.
  • Only a reason code whose answer is Choose a sub code has sub codes. To change the answer of a code that has sub codes, remove the sub codes first.

Using a reason code​

Not asked yet. The register screen does not ask reason codes in this release. Set them up now; they start working when the register learns to ask them (see The register screen, What is not on the screen yet).

A reason code does nothing until a store asks for it. Open the store, go to Register > Reason code prompts and choose the code for each moment where the register should ask. The same code can serve several moments. Leave a moment on None if the register should not ask.

Deleting​

A reason code that a store asks for cannot be deleted. The message names the stores. Choose None for that moment on those stores, or untick Active, and then delete.

Messages you may see​

MessageWhat to do
A reason code ‹code› already exists.Choose another code.
‹field› is invalid: ‹reason›.The code, name or prompt breaks a rule above, or a sub code appears twice.
‹code› is used by store ‹numbers› and cannot be deleted.Remove it from those stores first.
Enter a code, a name and a prompt.Fill the three columns before saving a new row.