Repository navigation
[No QA] Sonialiap prohibited expenses #61596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4eff0ba
Update Set-up-rules.md
sonialiap 4ca219f
Create prohibited-expense-rule.md
sonialiap d17b1e1
Update prohibited-expense-rule.md
sonialiap b69ca7b
Update Set-up-rules.md
strepanier03 a4c07fd
Update and rename prohibited-expense-rule.md to Prohibited-Expense-Ru…
strepanier03 aef444c
Update Prohibited-Expense-Rule.md
sonialiap 347cf77
Update docs/articles/new-expensify/workspaces/Prohibited-Expense-Rule.md
strepanier03 bc70a18
Update docs/articles/new-expensify/workspaces/Set-up-rules.md
strepanier03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
docs/articles/new-expensify/workspaces/Prohibited-Expense-Rule.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| --- | ||
| title: Prohibited Expenses Rule | ||
| description: Learn how to enable and use the Prohibited expenses rule to automatically flag receipts with restricted items such as alcohol, gambling, or tobacco. | ||
| keywords: [prohibited expenses, receipt violation, SmartScan, alcohol, gambling, expense rules, workspace settings, line item compliance] | ||
| --- | ||
| <div id="new-expensify" markdown="1"> | ||
|
|
||
| Enable the **Prohibited expenses** rule to automatically flag receipts containing restricted purchases like alcohol, gambling, or tobacco. This rule uses Expensify’s AI-powered SmartScan to detect violations at the line-item level and notify admins for review. | ||
|
|
||
| # Prohibited Expense Rule | ||
|
|
||
| The Prohibited expenses rule allows Workspace Admins to enforce compliance by flagging receipts that contain restricted items. SmartScan analyzes individual line items and applies violations when prohibited categories are detected. | ||
|
|
||
| ## How it works | ||
|
|
||
| Once enabled, this rule uses AI to review receipt line items during SmartScan. If a prohibited item is found, the expense is flagged for review. | ||
|
|
||
| - Available in both Expensify Classic and New Expensify. | ||
| - Configuration is only available in New Expensify. | ||
| - Automatically flags receipts for manual review by a Workspace Admin or approver. | ||
|
|
||
| ## How to enable the rule | ||
|
|
||
| To turn on the Prohibited expenses rule: | ||
|
|
||
| 1. Go to **Settings** > **Workspaces** > click _Workspace Name_ > **Rules** > **Expenses**. | ||
| 2. Scroll to the section titled **Prohibited expenses**. | ||
| 3. Toggle on the rule. | ||
| 4. Select the prohibited categories you want to monitor: | ||
| - Adult entertainment | ||
| - Alcohol | ||
| - Gambling | ||
| - Hotel incidentals | ||
| - Tobacco | ||
|
|
||
| **Note:** This rule is disabled by default. Admins must enable it and choose which categories to apply. | ||
|
|
||
| ## What happens when a prohibited item is detected? | ||
|
|
||
| If a SmartScan detects a prohibited item: | ||
|
|
||
| - A violation is added to the expense. | ||
| - The expense displays the messages: | ||
| - `"Receipt Issue Found"` | ||
| - `"Prohibited expense: Alcohol"` (or the relevant flagged category). | ||
| - The expense requires manual review by the approver. | ||
|
|
||
| --- | ||
|
|
||
| # FAQ | ||
|
|
||
| ## Who can enable the Prohibited Expenses Rule? | ||
|
|
||
| Only Workspace Admins can enable or adjust this rule in New Expensify. | ||
|
|
||
| ## Will violations appear in Expensify Classic? | ||
|
|
||
| Yes. Even though configuration is handled in New Expensify, violations appear in both **Expensify Classic** and **New Expensify** when viewing expenses. | ||
|
|
||
| If the Domain Group setting, **Strictly enforce expense workspace rules** is enabled, it will block the submission of the expense with the prohibited item violation. | ||
|
|
||
| ## Will SmartScan still work if the rule is off? | ||
|
|
||
| Yes. SmartScan will still extract the merchant, date, and amount. However, it will not flag line items for violations unless the rule is enabled. | ||
|
|
||
| ## Is this rule part of SmartScan? | ||
|
|
||
| Yes. Once enabled, the rule works seamlessly with SmartScan to detect prohibited line items in all scanned receipts. | ||
|
|
||
| </div> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.