Simple rules on expense types catch a receipt that breaks a rule or looks suspicious when it is sent. The employee sees the breach and its reason while adding the receipt, and a receipt that may have been declared before shows the link to the earlier record. The approver reads one line at the top of the group window ("1 of 3 receipts follows the rules, 1 receipt may have been declared before") and only looks at the flagged receipt. If you want, clean, small groups pass the approval steps by themselves. A user with Expense manager permission manages the rules and the setting.
If you turn on no rule, the expense screen works as it does today.
Before you start
You have Expense manager permission.
Expense types are set up (Expense types).
Steps
Putting rules on an expense type
Open Configuration > Expenses > Expense types and choose Edit from the Actions button of the type's row (Add expense type for a new type).
In the Rules section turn on the rule you want. There are four rules, all start off:
Daily limit per person: the total an employee may spend on this type on the same day. The amount is in the type's currency, in TRY when the type has none. On a TRY limit, foreign currency receipts count with their TRY amount at the rate of the receipt date. The employee's other groups in approval, awaiting payment and paid count too.
Receipt age: how many days before sending a receipt may be dated at most (60 days when you turn it on).
Weekends and public holidays: receipts dated on a Saturday, Sunday or a full day public holiday. Half day eves do not count.
Minimum description: the receipt description needs at least this many characters (10 when you turn it on).
For every rule that is on, choose what happens in When a receipt breaks it:
Inform: the employee and approvers see it next to the receipt; sending is not affected.
Warn and ask for a reason: the employee writes a reason before sending, approvers read it.
Block sending: the group cannot be sent until the receipt is fixed.
Click Update (Save for a new type). The section title shows how many rules are on.
Receipt content rules (AI)
The Receipt content (AI) group under the same Rules section has four more rules that look at the receipt itself. The receipt is read by AI, so the approver does not have to zoom in and read it line by line. All start off:
Restricted item: the receipt has an item this type does not accept. Under Items not accepted choose from Alcoholic drinks, Tobacco, Gambling and lottery and Personal care and cosmetics (alcohol and tobacco are chosen when you turn it on). The finding names the item and its amount, for example "EFES PILSEN 50CL (₺65.00)". Default: Warn and ask for a reason.
Type mismatch: the place or the items do not fit the chosen type, for example a grocery receipt under Fuel. Default: Inform.
Amount and date mismatch: the entered amount, VAT or date differs from the receipt. A difference of up to 1 TL on amounts is not a finding. Default: Warn and ask for a reason.
Unreadable receipt: the receipt cannot be read or a value on it was changed by hand. Only shown as information; it is not a claim that the receipt is fake.
When the receipt is read and what it costs:
A receipt that came from the automatic fill (single receipt or bulk upload) is checked with that same reading. There is no second reading and no second charge.
A typed receipt with a file is read when the group is sent for approval; each one costs the Expenses: receipt content check credit (the price is in the credit list). The Review and send step shows "When you send, the content of 2 receipts will be checked by AI." with the credit badge.
When there is not enough credit, receipt reading is off in Configuration > Security and data > AI and data or the receipt cannot be read, it is not read, the group is still sent and the receipt shows Content not checked. The credit of the submission's own timestamp is kept aside.
A type whose rules are off is never read and never charged. Mileage, per diem and e-invoice QR lines are not read.
Duplicate receipt check
Teamso compares with receipts entered before anywhere in the company; you do not need to turn on a rule:
the same receipt date, amount and vendor,
or the same vendor tax number and receipt number,
or the same file (the same photo or PDF added a second time).
Receipts of rejected groups are not compared. The file comparison works on files added after this feature. Only a person who may open the earlier group sees its link; others read a note such as "in a record of another employee".
Automatic approval and the duplicate setting
Click Pre-check settings in the header of the Expense types page.
Turn on Approve clean, small groups automatically and enter the Amount limit (TRY).
For Possible duplicate receipt choose Inform or Ask for a reason.
In Rate for foreign currency receipts choose which rate of the day converts foreign currency receipts to TRY: Forex buying rate (default), Forex selling rate, Banknote buying rate or Banknote selling rate. The rate comes from the rate source of the benefit settings for the receipt date; if you enter the rates by hand there, those rates are used. A new choice applies to new and edited receipts; the rate of a saved receipt does not change.
If you turn on Send per diem to payroll, when a group with a per diem line (worked out per day) is paid, the per diem is added to the employee's benefit payments as an Allowance payment: the amount, the travel days, the city, the country and the tax free part (E015) are filled in. The payment comes as a draft with the Not in the payroll badge; the payroll specialist chooses Include in the payroll in the row menu under Benefits > Payments (Payments and deductions). This way a per diem you already paid with the expense is not paid a second time by mistake. With the switch off (the default) nothing is sent; nothing is sent either when the Benefits module is off.
Click Save.
Automatic approval only works for a group with no finding on any receipt (an inform finding and the findings of the receipt content rules count too, and so does a receipt whose content was not checked), within the department limits, with a known TRY amount for every receipt (a foreign currency receipt counts at the rate of its receipt date; a receipt still waiting for its rate stops the automatic approval) and a TRY total within the limit. A group sent again after a revision always goes to its approvers.
What the employee sees
When a receipt is added, its card shows the badge and the reason of the finding (for example "The receipt date falls on a weekend."). A possible duplicate says "A receipt with the same date, amount and vendor exists"; if you may open the earlier record, the Open the earlier record link appears.
In the Review and send step a Reason (shown to approvers) field opens under every receipt that a warning rule flagged. The reason needs at least 3 characters.
While a receipt breaks a rule that blocks sending, "1 receipt breaks a rule that blocks sending. Fix it or remove it from the group." appears and the group is not sent. The check runs before the SMS code, so no code is wasted.
What the approver sees
The one-line check summary sits at the top of the group window: "1 of 3 receipts follows the rules, 1 receipt may have been declared before, 1 receipt breaks a rule". When all are clean it says "All receipts follow the rules".
Narrow the list to flagged receipts with Show flagged only.
Every flagged receipt shows its badge, the reason, the employee's reason if any and the link to the earlier record.
When a finding does not hold (for example the item of a "Restricted item" finding was a client treat), click Not valid next to it. The finding turns grey and struck through, "Closed as not valid by Full Name, date" appears under it and a Finding closed as not valid row is added to the group's History. Undo opens it again. Only the person who can approve the group now sees this button.
The findings also appear in the Findings column of the Receipts card and in the Findings and Employee reason columns of the Excel export.
Result
Rules apply to new receipts and submissions from the moment they are saved. Draft groups are checked again whenever they are opened; sent groups keep the findings of the moment they were sent.
The History of an automatically approved group shows Approved automatically by rule after Sent for approval. The group becomes Awaiting payment; a user with Approve Expense still approves the payment.
A group with a finding is never approved automatically.
Common problems
Symptom: Saving shows "The expense type was saved but its rules were not. Try again."
Cause: The type was saved, the rules could not be written.
Solution: Open the type again with Edit and save the rules again.
Symptom: "Enter a valid value." appears under a rule that is on.
Cause: The amount, days or characters are empty or out of range (days 1 to 3650, characters 1 to 500, whole numbers).
Solution: Correct the value.
Symptom: Sending shows "Write a reason for the receipt flagged by a rule."
Cause: The reason of a receipt flagged by a warning rule is empty or shorter than 3 characters.
Solution: Fill in the reason field under the receipt in the Review and send step.
Symptom: A receipt shows Content not checked.
Cause: When the group was sent there was not enough digital credit, receipt reading was off in the AI settings or the receipt could not be read.
Solution: The group was sent anyway; the approver looks at the receipt. To have receipts read next time, add credit or turn receipt reading on in Configuration > Security and data > AI and data.
Symptom: A clean, small group was not approved automatically.
Cause: The group has a finding (even an inform one), goes over a department limit, has a foreign currency receipt still waiting for its rate, its TRY total goes over the amount limit or it comes back from a revision.
Solution: Nothing to do; the group goes to its approvers.




