Skip to content

Set the approval rules

Workflow is the app that lets a document wait for another person before it moves money or stock. Its approval rules say which documents wait; the people who approve answer them in the Approval inbox. Who: administrator · Where in the cycle: Set up.

Purchase orders, supplier bills, supplier payments, supplier returns, warehouse counts, write-offs and the differences found when a transfer is received all ask for a decision when they are sent: Submit on an order, Post on a bill, a payment or a return, Submit for approval on a count, Write off on a write-off, Receive with a Missing or Extra quantity on a transfer. Each shows Waiting for a decision until the answer comes.

Sales documents that Sales itself holds for a person ask too, with Workflow installed: a pre-sale order held over the shop’s credit limit or because its discount is deeper than the rep’s grant (Sales order), and a return held over a company ceiling (Sales return). They wait in the Approval inbox instead of the Approvals screen. New shops are not among them: they stay on the Approvals screen’s New shops tab in every company.

  • Without Workflow the answer comes at once: the document goes ahead as soon as it is sent, as it always has. Two kinds are the exception and wait for a person on their own page: a transfer difference and a write-off.
  • With Workflow installed the company’s rules answer. A kind of document with no rule, or with Never waits, still goes ahead at once, except a Sales order, a Sales return, an Expense, a Transfer difference and a Write-off, which wait for a person (below). A kind whose rule asks waits in the Approval inbox until the people it needs approve it, or one of them declines it.

Workflow needs no other app. It must be in your company’s subscription; the administrator installs it under Setup › Apps (Install and remove apps). It runs in SLFLO only.

  • Only the Administrator sets the rules: it takes Set the approval rules (WORKFLOW_RULES_MANAGE), which no other built-in role has. The same permission opens the screen; a person who only approves reads the inbox, not the rules.
  • Decide who approves. Approving takes Approve or decline what waits in the Approval inbox (WORKFLOW_APPROVE): the built-in Administrator, Finance manager and Supervisor have it, and you can add it to a role you made in Setup › Roles (Make a role with limits).
  • The screen lists the kinds of document of the apps your company has installed: Purchase order, Supplier bill, Supplier payment and Supplier return with Purchasing, Count, Write-off and Transfer difference with Inventory, and Sales order, Sales return, Expense (a person’s expense) and Expense payment (a payment of owed expenses) under the Sales heading. An Expense never approves itself: with no rule it waits for a person, and only a rule you set to Never waits lets expenses through with no one looking, which is your company’s choice. Every answer given with no person is written in the audit trail, by SLFLO.
  1. Open Workflow › Approval rules. The page says “Choose which documents wait for another person before they go ahead.”

  2. Find the kind of document. Under Waits when choose Never waits, Always waits or Waits from an amount.

  3. For Waits from an amount, type the From amount: a document worth that much or more waits. It is above zero, with up to two decimals, in your company’s currency, and not above 1,000,000,000,000.

  4. Under Approvals needed choose One person or Two people. With Never waits the field is hidden and one approval is sent. Two people is offered only when at least three people can approve (at least two for a Sales order or Sales return, which a rep sends); otherwise the screen says “Two people need at least three who can approve.” or, for those two kinds, “Two people need at least two who can approve.”

  5. Press Save. The rule applies to every document of that kind sent from then on.

Waits when What happens when a document of that kind is sent
Never waits It goes ahead at once, as without Workflow. A kind you never set behaves the same way, except the two sales kinds and Expense, which wait for a person (below). Never waits cannot be saved for a Sales order or Sales return.
Always waits Every one waits for approval.
Waits from an amount One worth the From amount or more waits; a smaller one goes ahead at once. A document whose amount is not known waits. For a Sales order or Sales return, one below the amount still waits, for one person: the rule adds steps, it does not lift Sales’ hold.

The amount a rule reads is the one the document carries when it is sent:

Kind The amount
Purchase order The order’s total with VAT.
Supplier bill The bill’s total with VAT.
Supplier payment The payment’s Amount.
Supplier return The credit the return gives, when it gives one. A return with no credit has no amount, so it waits.
Sales order The total with VAT that the credit check used, when the order is in your company’s currency. An order in another currency (a customer who buys in dollars) has no amount here, because SLFLO holds no exchange rate: it waits under Waits from an amount, and the inbox shows its own total, for example USD 1,140.00.
Sales return The credit the return gives, with the same rule for a return in another currency.
Count None: a count is valued only when it posts. A Waits from an amount rule makes every count wait.
Write-off None, for the same reason. With no rule it waits for a person, like a transfer difference. A Waits from an amount rule makes every write-off wait.
Transfer difference The missing and extra goods at the cost they were sent at. With no rule it waits for a person, like an expense.

With Two people, the document needs two approvals from two different people: the first approval keeps it waiting, the second lets it go ahead.

Sales has already decided that a person must look at a Sales order or a Sales return that it holds. So with no rule set, they still wait for one person: the card shows Always waits and the note “Not set: this kind waits for a person.” No rule changes that: Never waits is not offered for them (APPROVAL_HELD_NEEDS_A_PERSON), and under Waits from an amount a held order below the amount still waits for one person; the rule only adds a second approval from the amount. An Expense waits for a person with no rule; Never waits is the one rule that lets expenses through. A Write-off is a loss, so it waits for a person with no rule too (without Workflow it waits on its own page for a second person: see Write off held-back goods); only Never waits lets one through at once.

  • Anyone who holds Approve or decline what waits in the Approval inbox can approve a waiting document, whatever its kind, with one addition for sales documents: to decide a Sales order or a Sales return the person also needs Approve orders to approve or Decline orders to decline, within their team or data, and, with a value limit, cannot approve one worth more (LIMIT_EXCEEDED). A sales document outside their team is not shown to them. The Finance manager holds the inbox permission but not Approve orders, so does not see sales documents.
  • The person who sent a document never approves it, whatever they hold, the Administrator included. It does not show in their Waiting for you. Nobody decides a sales order or return placed by the rep they are (SELF_APPROVAL).
  • The second approval is never the first person. After the first approval the document waits for somebody else.
  • A decline needs a reason. It sends the document back with that reason (see Approve or decline a waiting document).

Because the sender never approves, a rule that asks needs more people who can approve than approvals it needs: at least two for One person, at least three for Two people. A Sales order or Sales return is placed by a rep, who holds no approval permission, so one or two people are enough for one or two approvals. The screen says how many people can approve (“2 people can approve.”), and warns when there are too few: “Only one person can approve, so nothing that person sends could be approved.” Save refuses a rule that asks while there are too few (APPROVAL_NEEDS_MORE_APPROVERS); give the permission to more people in Setup › Roles first. Never waits can always be saved.

The count is made for each kind of document, and counts only the people who can decide that kind: everyone who holds the inbox permission and, besides, the permission its app asks for. A Supplier bill, Purchase order, Supplier payment or Supplier return needs See purchasing (PURCHASE_VIEW), a Count, Write-off or Transfer difference needs See stock values (STOCK_VALUE_VIEW), an Expense needs Approve or decline expenses (EXPENSE_APPROVE), an Expense payment needs Pay expenses and record what reps pay back (EXPENSE_PAY), and a Sales order or Sales return needs Approve orders (a person outside the team of the order still cannot decide it, which the count does not see). So a Supervisor, who holds the inbox permission, is not counted for a supplier bill. The card shows the number for its own kind.

Without a rule, SLFLO keeps two checks of its own so the person who prepares a document is not the one who releases it: a supplier payment set against a bill you entered or posted is refused (PAYMENT_NEEDS_ANOTHER_PERSON), and a count that found less than the books say cannot be submitted by the person who started it (COUNT_LOSS_NEEDS_ANOTHER_PERSON).

Once Workflow is installed, that check is no longer made for a document the rule makes wait: the approval takes its place, and the approver is never the person who sent it. With Always waits that is every payment or count. With Waits from an amount, a payment under the amount goes ahead at once and keeps the check; every count waits, because a count has no amount. With Never waits, or no rule, the check stays.

A held Sales order or Sales return in a company with Workflow no longer waits on the Approvals screen: it waits in the Approval inbox under its rule. What was held before Workflow was installed stays on the Approvals screen and is decided there.

A change applies to documents sent after you press Save. What already waits keeps waiting for a decision under the rule it was sent with: changing a rule to Never waits does not release it.

Every change is in the audit trail (WORKFLOW_RULE_SET), with who made it and what the rule became.

Nile Fresh’s Administrator opens Workflow › Approval rules. On Supplier bill she chooses Waits from an amount, types 5,000.00 in From amount, keeps One person under Approvals needed and presses Save. On Write-off she chooses Always waits, One person, Save (a write-off would wait for a person with no rule at all, so this only makes the choice explicit). The Finance manager can approve too, so the screen says “2 people can approve.” and Save is accepted. She leaves Sales order unset: its card shows Always waits and “Not set: this kind waits for a person.”.

From now on a supplier bill of 3,200.00 goes straight to Posted when it is posted; a bill of 12,000.00 waits in the Approval inbox, and so does every write-off. An order held for Delta Kiosk’s credit limit waits there for a person too (a sales order).

  • Waiting documents show Waiting for a decision on their own pages and in the Approval inbox of everyone who may decide them.
  • A month cannot be closed while a document sent in it, or before it, waits for a decision.
  • Removing Workflow is refused while a document waits, a sales order or return included (APP_HAS_OPEN_DOCUMENTS); removing it keeps the rules and the decisions, and documents sent afterwards go ahead at once again.
What you seeWhat to do
A value in the request isn't valid. The message says which.INVALID_VALUEThe rule as typed can't be kept: the From amount must be above zero, with up to two decimals and not above 1,000,000,000,000, and Never waits has no amount and one approval.
A document its app held for a person always waits for one. A rule can add a second approval or apply from an amount, but it can't say that nobody needs to look.APPROVAL_HELD_NEEDS_A_PERSONA held sales order or return always waits for a person. Choose Always waits or Waits from an amount.
Not enough people can approve for this rule. The sender never approves their own document, so give more people the approve permission first.APPROVAL_NEEDS_MORE_APPROVERSToo few people can approve for this rule: one more than the approvals it needs. Give the approve permission to more people in Setup › Roles, then save again.
No document of that kind waits for approval in your company. Reload the rules.APPROVAL_DOCUMENT_TYPE_UNKNOWNThat kind of document belongs to an app your company does not run any more. Reload the page.
This app isn't installed for your company. An administrator can install it under Setup › Apps.APP_NOT_INSTALLEDYour company has not installed Workflow. An administrator installs it under Setup › Apps.
You do not have access to this. Ask your administrator if your work needs it.MISSING_PERMISSIONOnly the Administrator sets the approval rules.
A document waits and nobody else can approve itSomeone lost the approve permission after the rule was saved. Give Approve or decline what waits in the Approval inbox to another person in Setup › Roles; the sender never approves their own.