diff --git a/.github/workflows/preDeploy.yml b/.github/workflows/preDeploy.yml
index f09865de0194..bb1cd71c9518 100644
--- a/.github/workflows/preDeploy.yml
+++ b/.github/workflows/preDeploy.yml
@@ -32,7 +32,9 @@ jobs:
- name: Exit failed workflow
if: ${{ needs.typecheck.result == 'failure' || needs.lint.result == 'failure' || needs.test.result == 'failure' }}
- run: exit 1
+ run: |
+ echo "Checks failed, exiting ~ typecheck: ${{ needs.typecheck.result }}, lint: ${{ needs.lint.result }}, test: ${{ needs.test.result }}"
+ exit 1
chooseDeployActions:
runs-on: ubuntu-latest
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 4b84a066e6e1..2a9454bf87fe 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -108,8 +108,8 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
multiDexEnabled rootProject.ext.multiDexEnabled
- versionCode 1009000901
- versionName "9.0.9-1"
+ versionCode 1009000902
+ versionName "9.0.9-2"
// Supported language variants must be declared here to avoid from being removed during the compilation.
// This also helps us to not include unnecessary language variants in the APK.
resConfigs "en", "es"
diff --git a/docs/articles/expensify-classic/connect-credit-cards/company-cards/Troubleshooting.md b/docs/articles/expensify-classic/connect-credit-cards/company-cards/Troubleshooting.md
index 05366a91d9fa..f94e692f5e56 100644
--- a/docs/articles/expensify-classic/connect-credit-cards/company-cards/Troubleshooting.md
+++ b/docs/articles/expensify-classic/connect-credit-cards/company-cards/Troubleshooting.md
@@ -8,6 +8,15 @@ Whether you're encountering issues related to company cards, require assistance
## How to add company cards to Expensify
You can add company credit cards under the Domain settings in your Expensify account by navigating to *Settings* > *Domain* > _Domain Name_ > *Company Cards* and clicking *Import Card/Bank* and following the prompts.
+## To Locate Missing Card Transactions in Expensify
+1. **Wait for Posting**: Bank transactions may take up to 24 hours to import into Expensify after they have "posted" at your bank. Ensure sufficient time has passed for transactions to appear.
+2. **Update Company Cards**: Go to Settings > Domains > Company Cards. Click on the card in question and click "Update" to refresh the card feed.
+3. **Reconcile Cards**: Navigate to the Reconciliation section under Settings > Domains > Company Cards. Refer to the detailed guide on how to use the [Reconciliation Dashboard](https://help.expensify.com/articles/expensify-classic/connect-credit-cards/company-cards/Reconciliation#identifying-outstanding-unapproved-expenses-using-the-reconciliation-dashboard).
+4. **Review Transactions**: Use the Reconciliation Dashboard to view all transactions within a specific timeframe. Transactions will display on the Expenses page based on their "Posted Date". If needed, uncheck the "use posted date" checkbox near the filters to view transactions based on their "Transaction Date" instead.
+5. **Address Gaps**: If there is a significant gap in transactions or if transactions are still missing, contact Expensify's Concierge or your Account Manager. They can initiate a historical data update on your card feed to ensure all transactions are properly imported.
+
+Following these steps should help you identify and resolve any issues with missing card transactions in Expensify.
+
## Known issues importing transactions
The first step should always be to "Update" your card, either from Settings > Your Account > Credit Card Import or Settings > Domain > [Domain Name] > Company Cards for centrally managed cards. If a "Fix" or "Fix card" option appears, follow the steps to fix the connection. If this fails to import your missing transactions, there is a known issue whereby some transactions will not import for certain API-based company card connections. So far this has been reported on American Express, Chase and Wells Fargo. This can be temporarily resolved by creating the expenses manually instead:
@@ -63,6 +72,24 @@ If you've answered "yes" to any of these questions, a Domain Admins need to upda
Make sure you're importing your card in the correct spot in Expensify and selecting the right bank connection. For company cards, use the master administrative credentials to import your set of cards at *Settings* > *Domains* > _Domain Name_ > *Company Cards* > *Import Card*.
Please note there are some things that cannot be bypassed within Expensify, including two-factor authentication being enabled within your bank account. This will prevent the connection from remaining stable and will need to be turned off on the bank side.
+## Why Can’t I See the Transactions Before a Certain Date?
+When importing a card into Expensify, the platform typically retrieves 30-90 days of historical transactions, depending on the card or account type. For commercial feeds, transactions cannot be imported before the bank starts sending data. If needed, banks can send backdated files, and Expensify can run a historical update upon request.
+
+Additionally, Expensify does not import transactions dated before the "start date" you specify when assigning the card. Unless transitioning from an old card to a new one to avoid duplicates, it's advisable to set the start date to "earliest possible" or leave it blank.
+
+For historical expenses that cannot be imported automatically, consider using Expensify's [company card](https://help.expensify.com/articles/expensify-classic/connect-credit-cards/company-cards/CSV-Import) or [personal card](https://help.expensify.com/articles/expensify-classic/connect-credit-cards/Personal-Credit-Cards#importing-expenses-via-a-spreadsheet) spreadsheet import method. This allows you to manually input missing transactions into the system.
+
+## Why Am I / Why Is My Employee Seeing Duplicates?
+If an employee is seeing duplicate expenses, they may have accidentally imported the card as a personal credit card as well as having the Domain Admin assign them a company card.
+
+To troubleshoot:
+- Have the employee navigate to their Settings > Your Account > Credit Card Import and confirm that their card is only listed once.
+- If the card is listed twice, delete the entry without the "padlock" icon.
+
+**Important:** Deleting a duplicate card will delete all unapproved expenses from that transaction feed. Transactions associated with the remaining card will not be affected. If receipts were attached to those transactions, they will still be on the Expenses page, and the employee can click to SmartScan them again.
+
+Duplicate expenses might also occur if you recently unassigned and reassigned a company card with an overlapping start date. If this is the case and expenses on the “new” copy have not been submitted, you can unassign the card again and reassign it with a more appropriate start date. This action will delete all unsubmitted expenses from the new card feed.
+
## What are the most reliable bank connections in Expensify?*
All bank connections listed below are extremely reliable, but we recommend transacting with the Expensify Visa® Commercial Card. It also offers daily and monthly settlement, unapproved expense limits, realtime compliance for secure and efficient spending, and cash back on all US purchases. [Click here to learn more about the Expensify Card](https://use.expensify.com/company-credit-card).
diff --git a/docs/articles/expensify-classic/connections/netsuite/Configure-Netsuite.md b/docs/articles/expensify-classic/connections/netsuite/Configure-Netsuite.md
index e14a4cab21d6..0650cf5b516f 100644
--- a/docs/articles/expensify-classic/connections/netsuite/Configure-Netsuite.md
+++ b/docs/articles/expensify-classic/connections/netsuite/Configure-Netsuite.md
@@ -1,6 +1,470 @@
---
title: Configure Netsuite
-description: Configure Netsuite
+description: Configure NetSuite's export, coding, and advanced settings.
---
-# Coming soon
+By correctly configuring your NetSuite settings in Expensify, you can leverage the connection's settings to automate most of the tasks, making your workflow more efficient.
+
+# Configure Export Settings
+
+There are numerous options for exporting Expensify reports to NetSuite. Let's explore how to configure these settings to align with your business needs.
+
+To access these settings, head to **Settings > Workspace > Group > Connections** and select the **Configure** button.
+
+## Export Options
+
+### Subsidiary
+
+The subsidiary selection will only appear if you use NetSuite OneWorld and have multiple subsidiaries active. If you add a new subsidiary to NetSuite, sync the workspace connection, and the new subsidiary should appear in the dropdown list under **Settings > Workspaces > _[Workspace Name]_ > Connections**.
+
+### Preferred Exporter
+
+This option allows any admin to export, but the preferred exporter will receive notifications in Expensify regarding the status of exports.
+
+### Date
+
+The three options for the date your report will export with are:
+- Date of last expense: This will use the date of the previous expense on the report
+- Submitted date: The date the employee submitted the report
+- Exported date: The date you export the report to NetSuite
+
+## Reimbursable Expenses
+
+### Expense Reports
+
+Expensify transactions will export reimbursable expenses as expense reports by default, which will be posted to the payables account designated in NetSuite.
+
+### Vendor Bills
+
+Expensify transactions export as vendor bills in NetSuite and will be mapped to the subsidiary associated with the corresponding policy. Each report will be posted as payable to the vendor associated with the employee who submitted the report.
+You can also set an approval level in NetSuite for vendor bills.
+
+### Journal Entries
+
+Expensify transactions that are set to export as journal entries in NetSuite will be mapped to the subsidiary associated with this policy. All the transactions will be posted to the payable account specified in the policy.
+
+You can also set an approval level in NetSuite for the journal entries.
+
+**Important Notes:**
+- Journal entry forms by default do not contain a customer column, so it is not possible to export customers or projects with this export option
+- The credit line and header level classifications are pulled from the employee record
+
+## Non-Reimbursable Expenses
+
+### Vendor Bills
+
+Non-reimbursable expenses will be posted as a vendor bill payable to the default vendor specified in your policy's connection settings. If you centrally manage your company cards through Domains, you can export expenses from each card to a specific vendor in NetSuite. You can also set an approval level in NetSuite for the bills.
+
+### Journal Entries
+
+Non-reimbursable expenses will be posted to the Journal Entries posting account selected in your policy's connection settings. If you centrally manage your company cards through Domains, you can export expenses from each card to a specific account in NetSuite.
+
+**Important Notes:**
+- Expensify Card expenses will always export as Journal Entries, even if you have Expense Reports or Vendor Bills configured for non-reimbursable expenses on the Export tab
+- Journal entry forms do not contain a customer column, so it is not possible to export customers or projects with this export option
+- The credit line and header level classifications are pulled from the employee record
+
+### Expense Reports
+
+To use the expense report option for your corporate card expenses, you will need to set up your default corporate cards in NetSuite.
+
+To use a default corporate card for non-reimbursable expenses, you must select the correct card on the employee records (for individual accounts) or the subsidiary record (If you use a non-one world account, the default is found in your accounting preferences).
+
+Add the corporate card option and corporate card main field to your expense report transaction form in NetSuite by:
+1. Heading to _Customization > Forms > Transaction Forms > Preferred expense report form > Screen Fields_
+2. Under the Main tab, check “Show” for Account for Corporate Card Expenses
+3. On the Expenses tab, check “Show” for Corporate Card
+
+You can select the default account on your employee record to use individual corporate cards for each employee. Make sure you add this field to your employee entity form in NetSuite.
+If you have multiple cards assigned to a single employee, you cannot export to each account. You can only have a single default per employee record.
+
+### Export Invoices
+
+Select the Accounts Receivable account you want your Invoice Reports to export. In NetSuite, the Invoices are linked to the customer, corresponding to the email address where the Invoice was sent.
+
+### Default Vendor Bills
+
+When selecting the option to export non-reimbursable expenses as vendor bills, the list of vendors will be available in the dropdown menu.
+
+# Configure Coding Settings
+
+The Coding tab is where NetSuite information is configured in Expensify, which allows employees to code expenses and reports accurately. There are several coding options in NetSuite. Let’s go over each of those below.
+
+## Expense Categories
+
+Expensify's integration with NetSuite automatically imports NetSuite Expense Categories as Categories in Expensify.
+
+Please note that each expense must have a Category selected to export to NetSuite. The category chosen must be imported from NetSuite and cannot be manually created in Expensify.
+
+If you want to delete Categories, you must do this in NetSuite. Categories are added and modified on the integration’s side and then synced with Expensify.
+Once imported, you can turn specific Categories on or off under **Settings > Workspaces > _[Workspace Name]_ > Categories**.
+
+## Tags
+
+The NetSuite integration allows you to configure Customers, Projects, Departments, Classes, and Locations as line-item expense classifications. These are called Tags in Expensify.
+
+Suppose a default Customer, Project, Department, Class, or Location ties to the employee record in NetSuite. In that case, Expensify will create a rule that automatically applies that tag to all expenses made by that employee (the Tag is still editable if necessary).
+
+If you want to delete Tags, you must do this in NetSuite. Tags are added and modified on the integration’s side and then synced with Expensify.
+
+Once imported, you can turn specific Tags on or off under **Settings > Workspaces > _[Workspace Name]_ > Tags**.
+
+## Report Fields
+
+The NetSuite integration allows you to configure Customers, Projects, Departments, Classes, and Locations as report-level classifications. These are called Report Fields in Expensify.
+
+## NetSuite Employee Default
+
+The NetSuite integration allows you to set Departments, Classes, and Locations according to the NetSuite Employee Default for expenses exported as both Expense Reports and Journal Entries.
+
+These fields must be set in NetSuite's employee(s) record(s) to be successfully applied to expenses upon export.
+
+You cannot use the employee default setting with a vendor bill export if you have both a vendor and an employee set up for the user under the same email address and subsidiary.
+
+## Tax
+
+The NetSuite integration allows users to apply a tax rate and amount to each expense. To do this, import Tax Groups from NetSuite:
+1. In NetSuite, head to _Setup > Accounting > Tax Groups_
+2. Once imported, go to the NetSuite connection configuration page in Expensify (under **Settings > Workspaces > Group > _[Workspace Name]_ > Connection > NetSuite > Coding**), refresh the subsidiary list, and the Tax option will appear
+3. From there, enable Tax
+4. Click **Save**
+5. Sync the connection
+6. All Tax Groups for the connected NetSuite subsidiary will be imported to Expensify as taxes.
+7. After syncing, go to **Settings > Workspace > Group > _[Workspace Name]_ > Tax** to see the tax groups imported from NetSuite
+8. Use the turn on/off button to choose which taxes to make available to your employees
+9. Select a default tax to apply to the workspace (that tax rate will automatically apply to all new expenses)
+
+## Custom Segments
+
+To add a Custom Segment to your workspace, you’ll need to locate three fields in NetSuite:
+- Segment Name
+- Internal ID
+- Script/Field ID
+
+**To find the Segment Name:**
+1. Log in as an administrator in NetSuite
+2. Head to _Customization > Lists, Records, & Fields > Custom Segments_
+3. You’ll see the Segment Name on the Custom Segments page
+
+**To find the Internal ID:**
+1. Ensure you have internal IDs enabled in NetSuite under _Home > Set Preferences_
+2. Navigate back to the Custom Segment page
+3. Click the **Custom Record Type** hyperlink
+4. You’ll see the Internal ID on the Custom Record Type page
+
+**To find the Script/Field ID:**
+
+Note that as of 2019.1, any new custom segments that you create automatically use the unified ID, and the Use as Field ID box is not visible. If you are editing a custom segment definition that was created before 2019.1, the Use as Field ID box is available.
+To use a unified ID for the entire custom segment definition, check the Use as Field ID box. When the box is checked, no field ID fields or columns are shown on the Application & Sourcing subtabs because one ID is used for all fields.
+
+- If configuring Custom Segments as Report Fields, use the Field ID on the Transactions tab (under _Custom Segments > Transactions_), or if no Field ID is shown, use the unified ID (just called "ID" right below the "Label").
+- If configuring Custom Segments as Tags, use the Field ID on the Transaction Columns tab (under _Custom Segments > Transaction Columns_), or if no Field ID is shown, use the unified ID (just called "ID" right below the "Label").
+
+Lastly, head over to Expensify and do the following:
+1. Navigate to **Settings > Workspace > Group > _[Workspace Name]_ > Connections > Configure > Coding tab**
+2. Choose how to import Custom Segments (Report Fields or Tags)
+3. Fill out the three fields (Segment Name, Internal ID, Script ID)
+4. Click **Submit**
+
+From there, you should see the values for the Custom Segment under the Tag or Report Field settings in Expensify.
+
+Don’t use the "Filtered by" feature available for Custom Segments. Expensify can’t make these dependent on other fields. If you do have a filter selected, we suggest switching that filter in NetSuite to "Subsidiary" and enabling all subsidiaries to ensure you don't receive any errors upon exporting reports.
+
+### Custom Records
+
+Custom Records are added through the Custom Segments feature.
+
+To add a Custom Record to your workspace, you’ll need to locate three fields in NetSuite:
+- The name of the record
+- Internal ID
+- Transaction Column ID
+
+**To find the Internal ID:**
+1. Make sure you have Internal IDs enabled in NetSuite under Home > Set Preferences
+2. Navigate back to the Custom Segment page
+3. Click the Custom Record Type hyperlink
+4. You’ll see the Internal ID on the Custom Record Type page
+
+**To find the Transaction Column ID:**
+If configuring Custom Segments as Report Fields, use the Field ID on the Transactions tab (under _Custom Segments > Transactions_).
+
+If configuring Custom Segments as Tags, use the Field ID on the Transaction Columns tab (under _Custom Segments > Transaction Columns_).
+
+Lastly, head over to Expensify and do the following:
+1. Navigate to **Settings > Workspace > Group > [Workspace Name] > Connections > Configure > Coding tab**
+2. Choose how to import Custom Records (Report Fields or Tags)
+3. Fill out the three fields (the name or label of the record, Internal ID, Transaction Column ID)
+4. Click **Submit**
+
+From there, you should see the values for the Custom Records under the Tag or Report Field settings in Expensify.
+
+### Custom Lists
+
+To add Custom Lists to your workspace, you’ll need to locate two fields in NetSuite:
+- The name of the record
+- The ID of the Transaction Line Field that holds the record
+
+**To find the record:**
+1. Log into Expensify
+2. Head to **Settings > Workspace > Group > [Workspace Name] > Connections > Configure > Coding tab**
+3. The name of the record will be populated in a dropdown list
+
+The name of the record will populate in a dropdown list. If you don't see the one you are looking for, click **Refresh Custom List Options**.
+
+**To find the Transaction Line Field ID:**
+1. Log into NetSuite
+2. Search "Transaction Line Fields" in the global search
+3. Open the option that is holding the record to get the ID
+
+Lastly, head over to Expensify, and do the following:
+1. Navigate to **Settings > Workspaces > Group > [Workspace Name] > Connections > Configure > Coding tab**
+2. Choose how to import Custom Lists (Report Fields or Tags)
+3. Enter the ID in Expensify in the configuration screen
+4. Click **Submit**
+
+From there, you should see the values for the Custom Lists under the Tag or Report Field settings in Expensify.
+
+# Configure Advanced Settings
+
+The NetSuite integration’s advanced configuration settings are accessed under **Settings > Workspaces > Group > _[Workspace Name]_ > Connections > NetSuite > Configure > Advanced tab**.
+
+Let’s review the different advanced settings and how they interact with the integration.
+
+## Auto Sync
+
+Enabling Auto Sync ensures that the information in NetSuite and Expensify is always in sync through automating exports, tracking direct deposits, and communicating export errors.
+
+**Automatic Export:**
+- When you turn on the Auto Sync feature in Expensify, any final report you approve will automatically be sent to NetSuite.
+- This happens every day at approximately the same time.
+
+**Direct Deposit Alert:**
+- If you use Expensify's Direct Deposit ACH and have Auto Sync, getting reimbursed for an Expensify report will automatically create a Bill Payment in NetSuite.
+
+**Tracking Exports and Errors:**
+- In the comments section of an Expensify report, you can find extra details about the report.
+- The comments section will tell you when the report was sent to NetSuite, and if there were any problems during the export, it will show the error.
+
+## Newly Imported Categories
+
+With this enabled, all submitters can add any newly imported Categories to an Expense.
+
+## Invite Employees & Set Approval Workflow
+
+### Invite Employees
+
+Use this option in Expensify to bring your employees from a specific NetSuite subsidiary into Expensify.
+Once imported, Expensify will send them an email letting them know they've been added to a workspace.
+
+### Set Approval Workflow
+
+Besides inviting employees, you can also establish an approval process in NetSuite.
+
+By doing this, the Approval Workflow in Expensify will automatically follow the same rules as NetSuite, typically starting with Manager Approval.
+
+- **Basic Approval:** This is a single level of approval, where all users submit directly to a Final Approver. The Final Approver defaults to the workspace owner but can be edited on the people page.
+- **Manager Approval (default):** Two levels of approval route reports first to an employee's NetSuite expense approver or supervisor, and second to a workspace-wide Final Approver. By NetSuite convention, Expensify will map to the supervisor if no expense approver exists. The Final Approver defaults to the workspace owner but can be edited on the people page.
+- **Configure Manually:** Employees will be imported, but all levels of approval must be manually configured on the workspace's People settings page. If you enable this setting, it’s recommended you review the newly imported employees and managers on the **Settings > Workspaces > Group > _[Workspace Name]_ > People page**. You can set a user role for each new employee and enforce an approval workflow.
+
+## Automatically Create Employees/Vendors
+
+With this feature enabled, Expensify will automatically create a new employee or vendor (if one doesn’t already exist) from the report submitter's email in NetSuite.
+
+## Export Foreign Currency Amount
+
+Using this feature allows you to send the original amount of the expense rather than the converted total when exporting to NetSuite. This option is available if you are exporting reimbursable expenses as Expense Reports.
+
+## Cross-Subsidiary Customers/Projects
+
+This allows you to import Customers and Projects across all subsidiaries to a single group workspace. For this functionality, you must enable "Intercompany Time and Expense" in NetSuite.
+
+That feature is found in NetSuite under _Setup > Company > Setup Tasks: Enable Features > Advanced Features_.
+
+## Sync Reimbursed Reports
+
+If you're using Expensify's Direct Deposit ACH feature and you want to export reimbursable expenses as either Expense Reports or Vendor Bills in NetSuite, here's what to do:
+1. In Expensify, go to the Advanced Settings tab
+2. Look for a toggle or switch related to this feature
+3. Turn it on by clicking the toggle
+4. Select the correct account for the Bill Payment in NetSuite
+5. Ensure the account you choose matches the default account for Bill Payments in NetSuite
+
+That's it! When Expensify reimburses an expense report, it will automatically create a corresponding Bill Payment in NetSuite.
+
+Alternatively, if reimbursing outside of Expensify, this feature will automatically update the expense report status in Expensify from Approved to Reimbursed when the respective report is paid in NetSuite and the corresponding workspace syncs via Auto-Sync or when the integration connection is manually synced.
+
+## Setting Approval Levels
+
+With this setting enabled, you can set approval levels based on your export type.
+
+- **Expense Reports:** These options correspond to the default preferences in NetSuite – “Supervisor approval only,” “Accounting approval only,” or “Supervisor and Accounting approved.”
+- **Vendor Bills or Journal Entries:** These options correspond to the default preferences in NetSuite – “Pending Approval” or “Approved for Posting.”
+
+If you have Approval Routing selected in your accounting preference, this will override the selections in Expensify.
+
+If you do not wish to use Approval Routing in NetSuite, go to _Setup > Accounting > Accounting Preferences > Approval Routing_ and ensure Vendor Bills and Journal Entries are not selected.
+
+### Collection Account
+
+When exporting invoices, once marked as Paid, the payment is marked against the account selected after enabling the Collection Account setting.
+
+# Additional Settings
+## Categories
+
+You can use the Auto-Categorization feature so that expenses are automatically categorized.
+
+To set Category Rules (e.g., receipt requirements or comments), go to the categories page in the workspace under **Settings > Workspaces > [Workspace Name] > Categories**.
+
+With this setting enabled, when an Expense Category updates in NetSuite, it will update in Expensify automatically.
+
+## Company Cards
+
+NetSuite's company card feature simplifies exporting reimbursable and non-reimbursable transactions to your General Ledger (GL). This approach is recommended for several reasons:
+
+1. **Separate Employees from Vendors:** NetSuite allows you to maintain separate employee and vendor records. This feature proves especially valuable when integrating with Expensify. By utilizing employee defaults for classifications, your employees won't need to apply tags to all their expenses manually.
+2. **Default Accounts Payable (A/P) Account:** Expense reports enable you to set a default A/P account for export on your subsidiary record. Unlike vendor bills, where the A/P account defaults to the last selected account, the expense report export option allows you to establish a default A/P account.
+3. **Mix Reimbursable and Non-Reimbursable Expenses:** You can freely mix reimbursable and non-reimbursable expenses without categorizing them in NetSuite after export. NetSuite's corporate card feature automatically categorizes expenses into the correct GL accounts, ensuring a neat and organized GL impact.
+
+**Let’s go over an example!**
+
+Consider an expense report with one reimbursable and one non-reimbursable expense. Each needs to be exported to different accounts and expense categories.
+
+In NetSuite, you can quickly identify the non-reimbursable expense marked as a corporate card expense. Reviewing the GL impact, you'll notice that the reimbursable expense is posted to the default A/P account set on the subsidiary record. On the other hand, the company card expense is assigned to the Credit Card account, which can either be set as a default on the subsidiary record (for a single account) or the employee record (for individual credit card accounts in NetSuite).
+
+Furthermore, each expense is categorized according to your selected expense category.
+
+To use the expense report option for your corporate card expenses, you'll need to set up default corporate cards in NetSuite.
+
+For non-reimbursable expenses, choose the appropriate card on the subsidiary record. You can find the default in your accounting preferences if you're not using a OneWorld account.
+
+Add the corporate card option and the corporate card main field to configure your expense report transaction form in NetSuite:
+1. Go to _Customization > Forms > Transaction Forms > Preferred expense report form > Screen Fields_
+2. Under the Main tab, check "Show for Account for Corporate Card Expenses"
+3. On the Expenses tab, check "Show for Corporate Card"
+
+If you prefer individual corporate cards for each employee, you can select the default account on the employee record. Add this field to your employee entity form in NetSuite (under _Customize > Customize Form_ from any employee record). Note that each employee can have only one corporate card account default.
+
+### Exporting Company Cards to GL Accounts in NetSuite
+
+If you need to export company card transactions to individual GL accounts, you can set that up at the domain level.
+
+Let’s go over how to do that:
+1. Go to **Settings > Domain > _[Domain name]_ > Company Cards**
+2. Click the Export Settings cog on the right-hand side of the card and select the GL account where you want the expenses to export
+
+After setting the account, exported expenses will be mapped to that designated account.
+
+## Tax
+
+You’ll want to set up Tax Groups in Expensify if you're keeping track of taxes.
+
+Expensify can import "NetSuite Tax Groups" (not Tax Codes) from NetSuite. Tax Groups can contain one or more Tax Codes. If you have subsidiaries in the UK or Ireland, ensure your Tax Groups have only one Tax Code.
+
+You can locate these in NetSuite by setting up> Accounting > Tax Groups.
+
+You’ll want to name Tax Groups something that makes sense to your employees since both the name and the tax rate will appear in Expensify.
+
+To bring NetSuite Tax Groups into Expensify, here's what you need to do:
+1. Create your Tax Groups in NetSuite by going to _Setup > Accounting > Tax Groups_
+2. Click **New**
+3. Pick the country for your Tax Group
+4. Enter the Tax Name (this will be visible to your employees in Expensify)
+5. Next, select the subsidiary for this Tax Group
+6. Finally, from the table, choose the Tax Code you want to include in this Tax Group
+7. Click **Add**, then click **Save**
+
+Repeat those steps for each tax rate you want to use in Expensify.
+
+Next, ensure that Tax Groups can be applied to expenses:
+1. In NetSuite, head to _Setup > Accounting > Set Up Taxes_
+2. Set the preference for "Tax Code Lists Include" to either "Tax Groups And Tax Codes" or "Tax Groups Only." If you don't see this field, don't worry; it means you don't need to set it for that specific country
+
+NetSuite has a pre-made list of tax groups for specific locations, but you can also create your own. We'll import both your custom tax groups and the default ones. It's important not to deactivate the default NetSuite tax groups because we rely on them for exporting specific types of expenses.
+
+For example, there's a default Canadian tax group called CA-Zero, which we use when exporting mileage and per diem expenses that don't have any taxes applied in
+
+Expensify. If you deactivate this group in NetSuite, it will lead to export errors.
+
+Additionally, some tax nexuses in NetSuite have specific settings that need to be configured in a certain way to work seamlessly with the Expensify integration:
+- In the Tax Code Lists Include field, choose "Tax Groups" or "Tax Groups and Tax Codes." This setting determines how tax information is handled.
+- In the Tax Rounding Method field, select "Round Off." Although it won't cause connection errors, not using this setting can result in exported amounts differing from what NetSuite expects.
+
+If your tax groups are importing into Expensify but not exporting to NetSuite, check that each tax group has the right subsidiaries enabled. That is crucial for proper data exchange.
+
+## Multi-Currency
+
+When using multi-currency features with NetSuite, remember these points:
+
+**Matching Currencies:** The currency set for a vendor or employee record must match the currency chosen for the subsidiary in your Expensify configuration. This alignment is crucial for proper handling.
+
+**Foreign Currency Conversion:** If you create expenses in one currency and then convert them to another currency within Expensify before exporting, you can include both the original and converted amounts in the exported expense reports. This option, called "Export foreign currency amount," can be found in the Advanced tab of your configuration. Note that Expensify sends only the amounts; the actual currency conversion is performed in NetSuite.
+
+**Bank Account Currency:** When synchronizing bill payments, make sure your bank account's currency matches the subsidiary's currency. Failure to do so will result in an "Invalid Account" error. This alignment is necessary to prevent issues during payment processing.
+
+## Exporting Invoices
+
+When you mark an invoice as paid in Expensify, the paid status syncs with NetSuite and vice versa!
+
+Let's dive right in:
+1. Access Configuration Settings: Go to **Settings > Workspace > Group > _[Workspace Name]_ > Connections > Configuration**
+2. Choose Your Accounts Receivable Account: Scroll down to "Export Expenses to" and select the appropriate Accounts Receivable account from the dropdown list. If you don't see any options, try syncing your NetSuite connection by returning to the Connections page and clicking **Sync Now**
+
+### Exporting an Invoice to NetSuite
+
+Invoices will be automatically sent to NetSuite when they are in the "Processing" or "Paid" status. This ensures you always have an up-to-date record of unpaid and paid invoices.
+
+If you have Auto Sync disabled, you'll need to export your invoices, along with your expense reports, manually. Follow these three simple steps:
+1. Filter Invoices: From your Reports page, use filters to find the invoices you want to export.
+2. Select Invoices: Pick the invoices ready for export.
+3. Export to NetSuite: Click **Export to NetSuite** in the top right-hand corner.
+
+When exporting to NetSuite, we match the recipient's email address on the invoice to a customer record in NetSuite, meaning each customer in NetSuite must have an email address in their profile. If we can't find a match, we'll create a new customer in NetSuite.
+
+Once exported, the invoice will appear in the Accounts Receivable account you selected during your NetSuite Export configuration.
+
+### Updating the status of an invoice to "paid"
+
+When you mark an invoice as "Paid" in Expensify, this status will automatically update in NetSuite. Similarly, if the invoice is marked as "Paid" in NetSuite, it will sync with Expensify. The payment will be reflected in the Collection account specified in your Advanced Settings Configuration.
+
+## Download NetSuite Logs
+
+Sometimes, we might need more details from you to troubleshoot issues with your NetSuite connection. Providing the NetSuite web services usage logs is incredibly useful.
+
+Here's how you can send them to us:
+1. **Generate the Logs:** Start by trying to export a report from your system. This action will create the most recent logs that we require.
+2. **Access Web Services Usage Logs:** You can locate these logs in your NetSuite account. Just use the global search bar at the top of the page and type in "Web Services Usage Log."
+3. **Identify the Logs:** Look for the most recent log entry. It should have "FAILED" under the STATUS column. Click on the two blue "view" links under the REQUEST and RESPONSE columns. These are the two .xml files we need to examine.
+
+Send these two files to your Account Manager or Concierge so we can continue troubleshooting!
+
+{% include faq-begin.md %}
+
+## How does Auto Sync work with reimbursed reports?
+
+If a report is reimbursed via ACH or marked as reimbursed in Expensify and then exported to NetSuite, the report is automatically marked as paid in NetSuite during the next sync.
+
+If a report is exported to NetSuite and then marked as paid in NetSuite, the report is automatically marked as reimbursed in Expensify during the next sync.
+
+## If I enable Auto Sync, what happens to existing approved and reimbursed reports?
+
+If you previously had Auto Sync disabled but want to allow that feature to be used going forward, you can safely turn it on without affecting existing reports. Auto Sync will only take effect for reports created after enabling that feature.
+
+## Why are some of my customers not importing from NetSuite?
+
+If only part of your customer list is importing from NetSuite to Expensify, ensure your page size is set to 1000 for importing customers and vendors:
+1. Navigate to **Setup > Integration > Web Services Preferences > Search Page Size**
+2. Adjust this setting to 1000
+3. Sync your connection again under **Settings > Workspaces > Group > Workspace Name > Connections**
+
+Additionally, ensure the "Company Name" field is completed for each customer profile; otherwise, they won't import into the Group Workspace.
+
+## Why aren't all my Categories pulling into Expensify from NetSuite?
+
+If you're having trouble importing your Categories, you'll want to start by checking that they are set up in NetSuite as actual Expense Categories, not General Ledger accounts:
+- Log into NetSuite as an administrator and go to **Setup > Accounting > Expense Categories**
+- A list of Expense Categories should be available
+- If no Expense Categories are visible click on "New" to create new Expense Categories
+
+If you have confirmed that your categories are set as Expense Categories in NetSuite and they still aren't importing to Expensify, make sure that the subsidiary of the Expense Category matches the subsidiary selected in your connection settings.
+
+{% include faq-end.md %}
diff --git a/docs/articles/expensify-classic/connections/netsuite/Connect-To-NetSuite.md b/docs/articles/expensify-classic/connections/netsuite/Connect-To-NetSuite.md
index 3c0e228c923f..1f96d9b8a633 100644
--- a/docs/articles/expensify-classic/connections/netsuite/Connect-To-NetSuite.md
+++ b/docs/articles/expensify-classic/connections/netsuite/Connect-To-NetSuite.md
@@ -1,21 +1,21 @@
---
title: NetSuite
-description: Connect and configure NetSuite directly to Expensify.
+description: Set up the direct connection from Expensify to NetSuite.
order: 1
---
# Overview
-Expensify's seamless integration with NetSuite enables you to streamline your expense reporting process. This integration allows you to automate the export of reports, tailor your coding preferences, and tap into NetSuite's array of advanced features. By correctly configuring your NetSuite settings in Expensify, you can leverage the connection's settings to automate most of the tasks, making your workflow more efficient.
+Expensify's integration with NetSuite allows you to automate report exports, tailor your coding preferences, and tap into NetSuite's array of advanced features. By correctly configuring your NetSuite settings in Expensify, you can leverage the connection's settings to automate most of the tasks, making your workflow more efficient.
-Before getting started with connecting NetSuite to Expensify, there are a few things to note:
+**Before connecting NetSuite to Expensify, a few things to note:**
- Token-based authentication works by ensuring that each request to NetSuite is accompanied by a signed token which is verified for authenticity
- You must be able to login to NetSuite as an administrator to initiate the connection
- You must have a Control Plan in Expensify to integrate with NetSuite
- Employees don’t need NetSuite access or a NetSuite license to submit expense reports since the connection is managed by the Workspace Admin
- Each NetSuite subsidiary will need its own Expensify Group Workspace
- Ensure that your workspace's report output currency setting matches the NetSuite Subsidiary default currency
-- Make sure your page size is set to 1000 for importing your customers and vendors. Go to Setup > Integration > Web Services Preferences > 'Search Page Size'
+- Make sure your page size is set to 1000 for importing your customers and vendors. You can check this in NetSuite under **Setup > Integration > Web Services Preferences > 'Search Page Size'**
-# How to Connect to NetSuite
+# Connect to NetSuite
## Step 1: Install the Expensify Bundle in NetSuite
@@ -58,7 +58,7 @@ Enabling Expense Reports is required as part of Expensify's integration with Net
## Step 6: Confirm Expense Categories are set up in NetSuite.
-Once Expense Reports are enabled, Expense Categories can be set up in NetSuite. Expense Categories are an alias for General Ledger accounts for coding expenses.
+Once Expense Reports are enabled, Expense Categories can be set up in NetSuite. Expense Categories are an alias for General Ledger accounts used to code expenses.
1. Logged into NetSuite as an administrator, go to Setup > Accounting > Expense Categories (a list of Expense Categories should show)
2. If no Expense Categories are visible, click **New** to create new ones
@@ -129,452 +129,36 @@ Please note that you must create the connection using a NetSuite account with th
Once connected, all reports exported from Expensify will be generated in NetSuite using SOAP Web Services (the term NetSuite employs when records are created through the integration).
-# How to Configure Export Settings
-
-There are numerous options for exporting Expensify reports to NetSuite. Let's explore how to configure these settings to align with your business needs.
-To access these settings, head to **Settings > Workspace > Group > Connections** and select the **Configure** button.
-
-## Export Options
-
-### Subsidiary
-
-The subsidiary selection will only appear if you use NetSuite OneWorld and have multiple subsidiaries active. If you add a new subsidiary to NetSuite, sync the workspace connection, and the new subsidiary should appear in the dropdown list under **Settings > Workspaces > _[Workspace Name]_ > Connections**.
-
-### Preferred Exporter
-
-This option allows any admin to export, but the preferred exporter will receive notifications in Expensify regarding the status of exports.
-
-### Date
-
-The three options for the date your report will export with are:
-- Date of last expense: This will use the date of the previous expense on the report
-- Submitted date: The date the employee submitted the report
-- Exported date: The date you export the report to NetSuite
-
-## Reimbursable Expenses
-
-### Expense Reports
-
-Expensify transactions will export reimbursable expenses as expense reports by default, which will be posted to the payables account designated in NetSuite.
-
-### Vendor Bills
-
-Expensify transactions export as vendor bills in NetSuite and will be mapped to the subsidiary associated with the corresponding policy. Each report will be posted as payable to the vendor associated with the employee who submitted the report.
-You can also set an approval level in NetSuite for vendor bills.
-
-### Journal Entries
-
-Expensify transactions that are set to export as journal entries in NetSuite will be mapped to the subsidiary associated with this policy. All the transactions will be posted to the payable account specified in the policy.
-
-You can also set an approval level in NetSuite for the journal entries.
-
-**Important Notes:**
-- Journal entry forms by default do not contain a customer column, so it is not possible to export customers or projects with this export option
-- The credit line and header level classifications are pulled from the employee record
-
-## Non-Reimbursable Expenses
-
-### Vendor Bills
-
-Non-reimbursable expenses will be posted as a vendor bill payable to the default vendor specified in your policy's connection settings. If you centrally manage your company cards through Domains, you can export expenses from each card to a specific vendor in NetSuite. You can also set an approval level in NetSuite for the bills.
-
-### Journal Entries
-
-Non-reimbursable expenses will be posted to the Journal Entries posting account selected in your policy's connection settings. If you centrally manage your company cards through Domains, you can export expenses from each card to a specific account in NetSuite.
-
-**Important Notes:**
-- Expensify Card expenses will always export as Journal Entries, even if you have Expense Reports or Vendor Bills configured for non-reimbursable expenses on the Export tab
-- Journal entry forms do not contain a customer column, so it is not possible to export customers or projects with this export option
-- The credit line and header level classifications are pulled from the employee record
-
-### Expense Reports
-
-To use the expense report option for your corporate card expenses, you will need to set up your default corporate cards in NetSuite.
-
-To use a default corporate card for non-reimbursable expenses, you must select the correct card on the employee records (for individual accounts) or the subsidiary record (If you use a non-one world account, the default is found in your accounting preferences).
-
-Add the corporate card option and corporate card main field to your expense report transaction form in NetSuite by:
-1. Heading to _Customization > Forms > Transaction Forms > Preferred expense report form > Screen Fields_
-2. Under the Main tab, check “Show” for Account for Corporate Card Expenses
-3. On the Expenses tab, check “Show” for Corporate Card
-
-You can select the default account on your employee record to use individual corporate cards for each employee. Make sure you add this field to your employee entity form in NetSuite.
-If you have multiple cards assigned to a single employee, you cannot export to each account. You can only have a single default per employee record.
-
-### Export Invoices
-
-Select the Accounts Receivable account you want your Invoice Reports to export. In NetSuite, the Invoices are linked to the customer, corresponding to the email address where the Invoice was sent.
-
-### Default Vendor Bills
-
-The list of vendors will be available in the dropdown when selecting the option to export non-reimbursable expenses as vendor bills.
-
-# How to Configure Coding Settings
-
-The Coding tab is where NetSuite information is configured in Expensify, which allows employees to code expenses and reports accurately. There are several coding options in NetSuite. Let’s go over each of those below.
-
-## Expense Categories
-
-Expensify's integration with NetSuite automatically imports NetSuite Expense Categories as Categories in Expensify.
-
-Please note that each expense must have a Category selected to export to NetSuite. The category chosen must be imported from NetSuite and cannot be manually created in Expensify.
-
-If you want to delete Categories, you must do this in NetSuite. Categories are added and modified on the integration’s side and then synced with Expensify.
-Once imported, you can turn specific Categories on or off under **Settings > Workspaces > _[Workspace Name]_ > Categories**.
-
-## Tags
-
-The NetSuite integration allows you to configure Customers, Projects, Departments, Classes, and Locations as line-item expense classifications. These are called Tags in Expensify.
-
-Suppose a default Customer, Project, Department, Class, or Location ties to the employee record in NetSuite. In that case, Expensify will create a rule that automatically applies that tag to all expenses made by that employee (the Tag is still editable if necessary).
-
-If you want to delete Tags, you must do this in NetSuite. Tags are added and modified on the integration’s side and then synced with Expensify.
-
-Once imported, you can turn specific Tags on or off under **Settings > Workspaces > _[Workspace Name]_ > Tags**.
-
-## Report Fields
-
-The NetSuite integration allows you to configure Customers, Projects, Departments, Classes, and Locations as report-level classifications. These are called Report Fields in Expensify.
-
-## NetSuite Employee Default
-
-The NetSuite integration allows you to set Departments, Classes, and Locations according to the NetSuite Employee Default for expenses exported as both Expense Reports and Journal Entries.
-
-These fields must be set in NetSuite's employee(s) record(s) to be successfully applied to expenses upon export.
-
-You cannot use the employee default setting with a vendor bill export if you have both a vendor and an employee set up for the user under the same email address and subsidiary.
-
-## Tax
-
-The NetSuite integration allows users to apply a tax rate and amount to each expense. To do this, import Tax Groups from NetSuite:
-1. In NetSuite, head to _Setup > Accounting > Tax Groups_
-2. Once imported, go to the NetSuite connection configuration page in Expensify (under **Settings > Workspaces > Group > _[Workspace Name]_ > Connection > NetSuite > Coding**), refresh the subsidiary list, and the Tax option will appear
-3. From there, enable Tax
-4. Click **Save**
-5. Sync the connection
-6. All Tax Groups for the connected NetSuite subsidiary will be imported to Expensify as taxes.
-7. After syncing, go to **Settings > Workspace > Group > _[Workspace Name]_ > Tax** to see the tax groups imported from NetSuite
-8. Use the turn on/off button to choose which taxes to make available to your employees
-9. Select a default tax to apply to the workspace (that tax rate will automatically apply to all new expenses)
-
-## Custom Segments
-
-To add a Custom Segment to your workspace, you’ll need to locate three fields in NetSuite:
-- Segment Name
-- Internal ID
-- Script/Field ID
-
-**To find the Segment Name:**
-1. Log in as an administrator in NetSuite
-2. Head to _Customization > Lists, Records, & Fields > Custom Segments_
-3. You’ll see the Segment Name on the Custom Segments page
-
-**To find the Internal ID:**
-1. Ensure you have internal IDs enabled in NetSuite under _Home > Set Preferences_
-2. Navigate back to the Custom Segment page
-3. Click the **Custom Record Type** hyperlink
-4. You’ll see the Internal ID on the Custom Record Type page
-
-**To find the Script/Field ID:**
-
-Note that as of 2019.1, any new custom segments that you create automatically use the unified ID, and the Use as Field ID box is not visible. If you are editing a custom segment definition that was created before 2019.1, the Use as Field ID box is available.
-To use a unified ID for the entire custom segment definition, check the Use as Field ID box. When the box is checked, no field ID fields or columns are shown on the Application & Sourcing subtabs because one ID is used for all fields.
-
-- If configuring Custom Segments as Report Fields, use the Field ID on the Transactions tab (under _Custom Segments > Transactions_), or if no Field ID is shown, use the unified ID (just called "ID" right below the "Label").
-- If configuring Custom Segments as Tags, use the Field ID on the Transaction Columns tab (under _Custom Segments > Transaction Columns_), or if no Field ID is shown, use the unified ID (just called "ID" right below the "Label").
-
-Lastly, head over to Expensify and do the following:
-1. Navigate to **Settings > Workspace > Group > _[Workspace Name]_ > Connections > Configure > Coding tab**
-2. Choose how to import Custom Segments (Report Fields or Tags)
-3. Fill out the three fields (Segment Name, Internal ID, Script ID)
-4. Click **Submit**
-
-From there, you should see the values for the Custom Segment under the Tag or Report Field settings in Expensify.
-
-Don’t use the "Filtered by" feature available for Custom Segments. Expensify can’t make these dependent on other fields. If you do have a filter selected, we suggest switching that filter in NetSuite to "Subsidiary" and enabling all subsidiaries to ensure you don't receive any errors upon exporting reports.
-
-### Custom Records
-
-Custom Records are added through the Custom Segments feature.
-
-To add a Custom Record to your workspace, you’ll need to locate three fields in NetSuite:
-- The name of the record
-- Internal ID
-- Transaction Column ID
-
-**To find the Internal ID:**
-1. Make sure you have Internal IDs enabled in NetSuite under Home > Set Preferences
-2. Navigate back to the Custom Segment page
-3. Click the Custom Record Type hyperlink
-4. You’ll see the Internal ID on the Custom Record Type page
-
-**To find the Transaction Column ID:**
-If configuring Custom Segments as Report Fields, use the Field ID on the Transactions tab (under _Custom Segments > Transactions_).
-
-If configuring Custom Segments as Tags, use the Field ID on the Transaction Columns tab (under _Custom Segments > Transaction Columns_).
-
-Lastly, head over to Expensify and do the following:
-1. Navigate to **Settings > Workspace > Group > [Workspace Name]_ > Connections > Configure > Coding tab**
-2. Choose how to import Custom Records (Report Fields or Tags)
-3. Fill out the three fields (the name or label of the record, Internal ID, Transaction Column ID)
-4. Click **Submit**
-
-From there, you should see the values for the Custom Records under the Tag or Report Field settings in Expensify.
-
-### Custom Lists
-
-To add Custom Lists to your workspace, you’ll need to locate two fields in NetSuite:
-- The name of the record
-- The ID of the Transaction Line Field that holds the record
-
-**To find the record:**
-1. Log into Expensify
-2. Head to **Settings > Workspace > Group > _[Workspace Name]_ > Connections > Configure > Coding tab**
-3. The name of the record will be populated in a dropdown list
-
-The name of the record will populate in a dropdown list. If you don't see the one you are looking for, click **Refresh Custom List Options**.
-
-**To find the Transaction Line Field ID:**
-1. Log into NetSuite
-2. Search "Transaction Line Fields" in the global search
-3. Open the option that is holding the record to get the ID
-
-Lastly, head over to Expensify, and do the following:
-1. Navigate to **Settings > Workspaces > Group > _[Workspace Name]_ > Connections > Configure > Coding tab**
-2. Choose how to import Custom Lists (Report Fields or Tags)
-3. Enter the ID in Expensify in the configuration screen
-4. Click **Submit**
-
-From there, you should see the values for the Custom Lists under the Tag or Report Field settings in Expensify.
-
-# How to Configure Advanced Settings
-
-The NetSuite integration’s advanced configuration settings are accessed under **Settings > Workspaces > Group > _[Workspace Name]_ > Connections > NetSuite > Configure > Advanced tab**.
-
-Let’s review the different advanced settings and how they interact with the integration.
-
-## Auto Sync
-
-Enabling Auto Sync ensures that the information in NetSuite and Expensify is always in sync through automating exports, tracking direct deposits, and communicating export errors.
-
-**Automatic Export:**
-- When you turn on the Auto Sync feature in Expensify, any final report you approve will automatically be sent to NetSuite.
-- This happens every day at approximately the same time.
-
-**Direct Deposit Alert:**
-- If you use Expensify's Direct Deposit ACH and have Auto Sync, getting reimbursed for an Expensify report will automatically create a Bill Payment in NetSuite.
-
-**Tracking Exports and Errors:**
-- In the comments section of an Expensify report, you can find extra details about the report.
-- The comments section will tell you when the report was sent to NetSuite, and if there were any problems during the export, it will show the error.
-
-## Newly Imported Categories
-
-With this enabled, all submitters can add any newly imported Categories to an Expense.
-
-## Invite Employees & Set Approval Workflow
-
-### Invite Employees
-
-Use this option in Expensify to bring your employees from a specific NetSuite subsidiary into Expensify.
-Once imported, Expensify will send them an email letting them know they've been added to a workspace.
-
-### Set Approval Workflow
-
-Besides inviting employees, you can also establish an approval process in NetSuite.
-
-By doing this, the Approval Workflow in Expensify will automatically follow the same rules as NetSuite, typically starting with Manager Approval.
-
-- **Basic Approval:** A single level of approval, where all users submit directly to a Final Approver. The Final Approver defaults to the workspace owner but can be edited on the people page.
-- **Manager Approval (default):** Two levels of approval route reports first to an employee's NetSuite expense approver or supervisor, and second to a workspace-wide Final Approver. By NetSuite convention, Expensify will map to the supervisor if no expense approver exists. The Final Approver defaults to the workspace owner but can be edited on the people page.
-- **Configure Manually:** Employees will be imported, but all levels of approval must be manually configured on the workspace's People settings page. If you enable this setting, it’s recommended you review the newly imported employees and managers on the **Settings > Workspaces > Group > _[Workspace Name]_ > People page**. You can set a user role for each new employee and enforce an approval workflow.
-
-## Automatically Create Employees/Vendors
-
-With this feature enabled, Expensify will automatically create a new employee or vendor (if one doesn’t already exist) from the email of the report submitter in NetSuite.
-
-## Export Foreign Currency Amount
-
-Using this feature allows you to send the original amount of the expense rather than the converted total when exporting to NetSuite. This option is available if you are exporting reimbursable expenses as Expense Reports.
-
-## Cross-Subsidiary Customers/Projects
-
-This allows you to import Customers and Projects across all subsidiaries to a single group workspace. For this functionality, you must enable "Intercompany Time and Expense" in NetSuite.
-
-That feature is found in NetSuite under _Setup > Company > Setup Tasks: Enable Features > Advanced Features_.
-
-## Sync Reimbursed Reports
-
-If you're using Expensify's Direct Deposit ACH feature and you want to export reimbursable expenses as either Expense Reports or Vendor Bills in NetSuite, here's what to do:
-1. In Expensify, go to the Advanced Settings tab
-2. Look for a toggle or switch related to this feature
-3. Turn it on by clicking the toggle
-4. Select the correct account for the Bill Payment in NetSuite
-5. Ensure the account you choose matches the default account for Bill Payments in NetSuite
-
-That's it! When Expensify reimburses an expense report, it will automatically create a corresponding Bill Payment in NetSuite.
-
-Alternatively, if reimbursing outside of Expensify, this feature will automatically update the expense report status in Expensify from Approved to Reimbursed when the respective report is paid in NetSuite and the corresponding workspace syncs via Auto-Sync or when the integration connection is manually synced.
-
-## Setting Approval Levels
-
-With this setting enabled, you can set approval levels based on your export type.
-
-- **Expense Reports:** These options correspond to the default preferences in NetSuite – “Supervisor approval only,” “Accounting approval only,” or “Supervisor and Accounting approved.”
-- **Vendor Bills or Journal Entries:** These options correspond to the default preferences in NetSuite – “Pending Approval” or “Approved for Posting.”
-
-If you have Approval Routing selected in your accounting preference, this will override the selections in Expensify.
-
-If you do not wish to use Approval Routing in NetSuite, go to _Setup > Accounting > Accounting Preferences > Approval Routing_ and ensure Vendor Bills and Journal Entries are not selected.
-
-### Collection Account
-
-When exporting invoices, once marked as Paid, the payment is marked against the account selected after enabling the Collection Account setting.
-
-# Deep Dive
-
-## Categories
-
-You can use the Auto-Categorization feature so that expenses are automatically categorized.
-
-To set Category Rules (e.g., receipt requirements or comments), go to the categories page in the workspace under **Settings > Workspaces > _[Workspace Name]_ > Categories**.
-
-With this setting enabled, when an Expense Category updates in NetSuite, it will update in Expensify automatically.
-
-## Company Cards
-
-NetSuite's company card feature simplifies exporting reimbursable and non-reimbursable transactions to your General Ledger (GL). This approach is recommended for several reasons:
-
-1. **Separate Employees from Vendors:** NetSuite allows you to maintain separate employee and vendor records. This feature proves especially valuable when integrating with Expensify. By utilizing employee defaults for classifications, your employees won't need to apply tags to all their expenses manually.
-2. **Default Accounts Payable (A/P) Account:** Expense reports enable you to set a default A/P account for export on your subsidiary record. Unlike vendor bills, where the A/P account defaults to the last selected account, the expense report export option allows you to establish a default A/P account.
-3. **Mix Reimbursable and Non-Reimbursable Expenses:** You can freely mix reimbursable and non-reimbursable expenses without categorizing them in NetSuite after export. NetSuite's corporate card feature automatically categorizes expenses into the correct GL accounts, ensuring a neat and organized GL impact.
-
-#### Let’s go over an example!
-
-Consider an expense report with one reimbursable and one non-reimbursable expense. Each needs to be exported to different accounts and expense categories.
-
-In NetSuite, you can quickly identify the non-reimbursable expense marked as a corporate card expense. Reviewing the GL impact, you'll notice that the reimbursable expense is posted to the default A/P account set on the subsidiary record. On the other hand, the company card expense is assigned to the Credit Card account, which can either be set as a default on the subsidiary record (for a single account) or the employee record (for individual credit card accounts in NetSuite).
-
-Furthermore, each expense is categorized according to your selected expense category.
-
-You'll need to set up default corporate cards in NetSuite to use the expense report option for your corporate card expenses.
-
-For non-reimbursable expenses, choose the appropriate card on the subsidiary record. You can find the default in your accounting preferences if you're not using a OneWorld account.
-
-Add the corporate card option and the corporate card main field to configure your expense report transaction form in NetSuite:
-1. Go to _Customization > Forms > Transaction Forms > Preferred expense report form > Screen Fields_
-2. Under the Main tab, check "Show for Account for Corporate Card Expenses"
-3. On the Expenses tab, check "Show for Corporate Card"
-
-If you prefer individual corporate cards for each employee, you can select the default account on the employee record. Add this field to your employee entity form in NetSuite (under _Customize > Customize Form_ from any employee record). Note that each employee can have only one corporate card account default.
-
-### Exporting Company Cards to GL Accounts in NetSuite
-
-If you need to export company card transactions to individual GL accounts, you can set that up at the domain level.
-
-Let’s go over how to do that:
-1. Go to **Settings > Domain > _[Domain name]_ > Company Cards**
-2. Click the Export Settings cog on the right-hand side of the card and select the GL account where you want the expenses to export
-
-After setting the account, exported expenses will be mapped to that designated account.
-
-## Tax
-
-You’ll want to set up Tax Groups in Expensify if you're keeping track of taxes.
-
-Expensify can import "NetSuite Tax Groups" (not Tax Codes) from NetSuite. Tax Groups can contain one or more Tax Codes. If you have subsidiaries in the UK or Ireland, ensure your Tax Groups have only one Tax Code.
-
-You can locate these in NetSuite by setting up> Accounting > Tax Groups.
-
-You’ll want to name Tax Groups something that makes sense to your employees since both the name and the tax rate will appear in Expensify.
-
-To bring NetSuite Tax Groups into Expensify, here's what you need to do:
-1. Create your Tax Groups in NetSuite by going to _Setup > Accounting > Tax Groups_
-2. Click **New**
-3. Pick the country for your Tax Group
-4. Enter the Tax Name (this will be visible to your employees in Expensify)
-5. Next, select the subsidiary for this Tax Group
-6. Finally, from the table, choose the Tax Code you want to include in this Tax Group
-7. Click **Add**, then click **Save**
-
-Repeat those steps for each tax rate you want to use in Expensify.
-
-Next, ensure that Tax Groups can be applied to expenses:
-1. In NetSuite, head to _Setup > Accounting > Set Up Taxes_
-2. Set the preference for "Tax Code Lists Include" to either "Tax Groups And Tax Codes" or "Tax Groups Only." If you don't see this field, don't worry; it means you don't need to set it for that specific country
-
-NetSuite has a pre-made list of tax groups for specific locations, but you can also create your own. We'll import both your custom tax groups and the default ones. It's important not to deactivate the default NetSuite tax groups because we rely on them for exporting specific types of expenses.
-
-For example, there's a default Canadian tax group called CA-Zero, which we use when exporting mileage and per diem expenses that don't have any taxes applied in
-
-Expensify. If you deactivate this group in NetSuite, it will lead to export errors.
-
-Additionally, some tax nexuses in NetSuite have specific settings that need to be configured in a certain way to work seamlessly with the Expensify integration:
-- In the Tax Code Lists Include field, choose "Tax Groups" or "Tax Groups and Tax Codes." This setting determines how tax information is handled.
-- In the Tax Rounding Method field, select "Round Off." Although it won't cause connection errors, not using this setting can result in exported amounts differing from what NetSuite expects.
-
-If your tax groups are importing into Expensify but not exporting to NetSuite, check that each tax group has the right subsidiaries enabled. That is crucial for proper data exchange.
-
-## Multi-Currency
-
-When using multi-currency features with NetSuite, remember these points:
-
-**Matching Currencies:** The currency set for a vendor or employee record must match the currency chosen for the subsidiary in your Expensify configuration. This alignment is crucial for proper handling.
-
-**Foreign Currency Conversion:** If you create expenses in one currency and then convert them to another currency within Expensify before exporting, you can include both the original and converted amounts in the exported expense reports. This option, called "Export foreign currency amount," can be found in the Advanced tab of your configuration. Note that Expensify sends only the amounts; the actual currency conversion is performed in NetSuite.
-
-**Bank Account Currency:** When synchronizing bill payments, make sure your bank account's currency matches the subsidiary's currency. Failure to do so will result in an "Invalid Account" error. This alignment is necessary to prevent issues during payment processing.
-
-## Exporting Invoices
-
-When you mark an invoice as paid in Expensify, the paid status syncs with NetSuite and vice versa!
-
-Let's dive right in:
-1. Access Configuration Settings: Go to **Settings > Workspace > Group > _[Workspace Name]_ > Connections > Configuration**
-2. Choose Your Accounts Receivable Account: Scroll down to "Export Expenses to" and select the appropriate Accounts Receivable account from the dropdown list. If you don't see any options, try syncing your NetSuite connection by returning to the Connections page and clicking **Sync Now**
-
-### Exporting an Invoice to NetSuite
-
-Invoices will be automatically sent to NetSuite when they are in the "Processing" or "Paid" status. This ensures you always have an up-to-date record of unpaid and paid invoices.
-
-If you have Auto Sync disabled, you'll need to export your invoices, along with your expense reports, manually. Follow these three simple steps:
-1. Filter Invoices: From your Reports page, use filters to find the invoices you want to export.
-2. Select Invoices: Pick the invoices ready for export.
-3. Export to NetSuite: Click **Export to NetSuite** in the top right-hand corner.
-
-When exporting to NetSuite, we match the recipient's email address on the invoice to a customer record in NetSuite, meaning each customer in NetSuite must have an email address in their profile. If we can't find a match, we'll create a new customer in NetSuite.
-
-Once exported, the invoice will appear in the Accounts Receivable account you selected during your NetSuite Export configuration.
-
-### Updating an Invoice to paid
-
-When you mark an invoice as "Paid" in Expensify, this status will automatically update in NetSuite. Similarly, if the invoice is marked as "Paid" in NetSuite, it will sync with Expensify. The payment will be reflected in the Collection account specified in your Advanced Settings Configuration.
-
-## Download NetSuite Logs
-
-Sometimes, we might need more details from you to troubleshoot issues with your NetSuite connection. Providing the NetSuite web services usage logs is incredibly useful.
-
-Here's how you can send them to us:
-1. **Generate the Logs:** Start by trying to export a report from your system. This action will create the most recent logs that we require.
-2. **Access Web Services Usage Logs:** You can locate these logs in your NetSuite account. Just use the global search bar at the top of the page and type in "Web Services Usage Log."
-3. **Identify the Logs:** Look for the most recent log entry. It should have "FAILED" under the STATUS column. Click on the two blue "view" links under the REQUEST and RESPONSE columns. These are the two .xml files we need to examine.
-
-Send these two files to your Account Manager or Concierge so we can continue troubleshooting!
-
{% include faq-begin.md %}
-## What type of Expensify plan is required for connecting to NetSuite?
-
-You need a group workspace on a Control Plan to integrate with NetSuite.
-
-## How does Auto Sync work with reimbursed reports?
-
-If a report is reimbursed via ACH or marked as reimbursed in Expensify and then exported to NetSuite, the report is automatically marked as paid in NetSuite during the next sync.
-
-If a report is exported to NetSuite and then marked as paid in NetSuite, the report is automatically marked as reimbursed in Expensify during the next sync.
-
-## If I enable Auto Sync, what happens to existing approved and reimbursed reports?
-
-If you previously had Auto Sync disabled but want to allow that feature to be used going forward, you can safely turn on Auto Sync without affecting existing reports. Auto Sync will only take effect for reports created after enabling that feature.
+## Can negative expenses be exported to NetSuite?
+You can export reports with a negative total to NetSuite by selecting “Vendor Bill” as your export option. When a report total is negative, we’ll create a Vendor Credit in NetSuite instead of a bill.
+
+**Important**: Only enable this if you pay your employees/vendors outside of Expensify. A Vendor Credit reduces the total amount payable in NetSuite, but not in Expensify.
+
+To use this feature, make sure you have configured your Vendor Credit transaction form in NetSuite and are using the latest version of the Expensify bundle (version 1.4). If you need to update, go to **Customization > SuiteBundler > Search & Install Bundles > List** and click **Update** next to **Expensify Connect**.
+
+## How do you switch the owner of the connection between NetSuite and Expensify?
+
+Follow the steps below to transfer ownership of the NetSuite connection to someone else:
+1. Head to **Settings > Workspaces > Workspace Name > Connections > NetSuite**
+2. Click **Configure** to review and save the settings for future reference
+3. Select **Do not connect to NetSuite**
+4. Select **Connect to NetSuite**
+5. Enter the email address of the new admin who will take over as the NetSuite User ID
+6. Enter the NetSuite Account ID (found in NetSuite under **Setup > Integration > Web Services Preferences**)
+7. Click **Create a new NetSuite Connection**
+8. Confirm completion of prerequisites and proceed by clicking Continue
+9. You will be redirected to the NetSuite SSO page, where you will enter the email address of the new connection owner and the NetSuite password for that account
+10. Once redirected to the NetSuite page, click **View all roles** and ensure you are logged in under the Administrator role
+11. After confirmation, sign out
+12. Return to Expensify to reconfigure the sync and export settings on the updated connection
+13. Click **Save**
+
+**If you run into any issues updating the connection, follow these additional troubleshooting steps:**
+- In NetSuite, access the role of the current connection owner
+- Click Edit > Access > Choose any role other than Administrator > Save
+- Click Edit > Access > Select Administrator role > Save
+- Repeat the steps outlined above
{% include faq-end.md %}
diff --git a/ios/NewExpensify/Info.plist b/ios/NewExpensify/Info.plist
index 0589648b2301..1f5e147806d0 100644
--- a/ios/NewExpensify/Info.plist
+++ b/ios/NewExpensify/Info.plist
@@ -40,7 +40,7 @@
CFBundleVersion
- 9.0.9.1
+ 9.0.9.2FullStoryOrgId
diff --git a/ios/NewExpensifyTests/Info.plist b/ios/NewExpensifyTests/Info.plist
index ccf45c0cf8d4..acb52a9762b7 100644
--- a/ios/NewExpensifyTests/Info.plist
+++ b/ios/NewExpensifyTests/Info.plist
@@ -19,6 +19,6 @@
CFBundleSignature????CFBundleVersion
- 9.0.9.1
+ 9.0.9.2
diff --git a/ios/NotificationServiceExtension/Info.plist b/ios/NotificationServiceExtension/Info.plist
index fe746670e837..3cda28856899 100644
--- a/ios/NotificationServiceExtension/Info.plist
+++ b/ios/NotificationServiceExtension/Info.plist
@@ -13,7 +13,7 @@
CFBundleShortVersionString9.0.9CFBundleVersion
- 9.0.9.1
+ 9.0.9.2NSExtensionNSExtensionPointIdentifier
diff --git a/package-lock.json b/package-lock.json
index 2ced5738cca8..71df37f4105e 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "new.expensify",
- "version": "9.0.9-1",
+ "version": "9.0.9-2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "new.expensify",
- "version": "9.0.9-1",
+ "version": "9.0.9-2",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
diff --git a/package.json b/package.json
index 81e963e12671..1fdb3251c793 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "new.expensify",
- "version": "9.0.9-1",
+ "version": "9.0.9-2",
"author": "Expensify, Inc.",
"homepage": "https://new.expensify.com",
"description": "New Expensify is the next generation of Expensify: a reimagination of payments based atop a foundation of chat.",
diff --git a/scripts/applyPatches.sh b/scripts/applyPatches.sh
index 9145629015ee..4ce023755258 100755
--- a/scripts/applyPatches.sh
+++ b/scripts/applyPatches.sh
@@ -11,7 +11,7 @@ source "$SCRIPTS_DIR/shellUtils.sh"
function patchPackage {
OS="$(uname)"
if [[ "$OS" == "Darwin" || "$OS" == "Linux" ]]; then
- npx patch-package --error-on-fail
+ npx patch-package --error-on-fail --color=always
else
error "Unsupported OS: $OS"
exit 1
diff --git a/src/CONST.ts b/src/CONST.ts
index dcef6d01f36c..f6cc32c5259e 100755
--- a/src/CONST.ts
+++ b/src/CONST.ts
@@ -842,6 +842,8 @@ const CONST = {
IOU: 'iou',
TASK: 'task',
INVOICE: 'invoice',
+ },
+ UNSUPPORTED_TYPE: {
PAYCHECK: 'paycheck',
BILL: 'bill',
},
@@ -5188,12 +5190,16 @@ const CONST = {
REPORT: 'report',
},
ACTION_TYPES: {
- DONE: 'done',
- PAID: 'paid',
VIEW: 'view',
REVIEW: 'review',
+ DONE: 'done',
+ PAID: 'paid',
+ },
+ BULK_ACTION_TYPES: {
+ EXPORT: 'export',
HOLD: 'hold',
UNHOLD: 'unhold',
+ DELETE: 'delete',
},
TRANSACTION_TYPE: {
CASH: 'cash',
@@ -5224,15 +5230,6 @@ const CONST = {
ACTION: 'action',
TAX_AMOUNT: 'taxAmount',
},
- BULK_ACTION_TYPES: {
- DELETE: 'delete',
- HOLD: 'hold',
- UNHOLD: 'unhold',
- SUBMIT: 'submit',
- APPROVE: 'approve',
- PAY: 'pay',
- EXPORT: 'export',
- },
SYNTAX_OPERATORS: {
AND: 'and',
OR: 'or',
@@ -5365,6 +5362,10 @@ const CONST = {
DATE: 'date',
LIST: 'dropdown',
},
+
+ NAVIGATION_ACTIONS: {
+ RESET: 'RESET',
+ },
} as const;
type Country = keyof typeof CONST.ALL_COUNTRIES;
diff --git a/src/ONYXKEYS.ts b/src/ONYXKEYS.ts
index 119477e2848e..091a6eceae9b 100755
--- a/src/ONYXKEYS.ts
+++ b/src/ONYXKEYS.ts
@@ -320,6 +320,9 @@ const ONYXKEYS = {
/** Onboarding Purpose selected by the user during Onboarding flow */
ONBOARDING_PURPOSE_SELECTED: 'onboardingPurposeSelected',
+ /** Onboarding error message to be displayed to the user */
+ ONBOARDING_ERROR_MESSAGE: 'onboardingErrorMessage',
+
/** Onboarding policyID selected by the user during Onboarding flow */
ONBOARDING_POLICY_ID: 'onboardingPolicyID',
@@ -451,6 +454,9 @@ const ONYXKEYS = {
/** The bank account that Expensify Card payments will be reconciled against */
SHARED_NVP_EXPENSIFY_CARD_CONTINUOUS_RECONCILIATION_CONNECTION: 'sharedNVP_expensifyCard_continuousReconciliationConnection_',
+
+ /** If continuous reconciliation is enabled */
+ SHARED_NVP_EXPENSIFY_CARD_USE_CONTINUOUS_RECONCILIATION: 'sharedNVP_expensifyCard_useContinuousReconciliation_',
},
/** List of Form ids */
@@ -569,6 +575,10 @@ const ONYXKEYS = {
SUBSCRIPTION_SIZE_FORM_DRAFT: 'subscriptionSizeFormDraft',
ISSUE_NEW_EXPENSIFY_CARD_FORM: 'issueNewExpensifyCard',
ISSUE_NEW_EXPENSIFY_CARD_FORM_DRAFT: 'issueNewExpensifyCardDraft',
+ EDIT_EXPENSIFY_CARD_NAME_FORM: 'editExpensifyCardName',
+ EDIT_EXPENSIFY_CARD_NAME_DRAFT_FORM: 'editExpensifyCardNameDraft',
+ EDIT_EXPENSIFY_CARD_LIMIT_FORM: 'editExpensifyCardLimit',
+ EDIT_EXPENSIFY_CARD_LIMIT_DRAFT_FORM: 'editExpensifyCardLimitDraft',
SAGE_INTACCT_CREDENTIALS_FORM: 'sageIntacctCredentialsForm',
SAGE_INTACCT_CREDENTIALS_FORM_DRAFT: 'sageIntacctCredentialsFormDraft',
NETSUITE_CUSTOM_FIELD_FORM: 'netSuiteCustomFieldForm',
@@ -646,6 +656,8 @@ type OnyxFormValuesMapping = {
[ONYXKEYS.FORMS.NEW_CHAT_NAME_FORM]: FormTypes.NewChatNameForm;
[ONYXKEYS.FORMS.SUBSCRIPTION_SIZE_FORM]: FormTypes.SubscriptionSizeForm;
[ONYXKEYS.FORMS.ISSUE_NEW_EXPENSIFY_CARD_FORM]: FormTypes.IssueNewExpensifyCardForm;
+ [ONYXKEYS.FORMS.EDIT_EXPENSIFY_CARD_NAME_FORM]: FormTypes.EditExpensifyCardNameForm;
+ [ONYXKEYS.FORMS.EDIT_EXPENSIFY_CARD_LIMIT_FORM]: FormTypes.EditExpensifyCardLimitForm;
[ONYXKEYS.FORMS.SAGE_INTACCT_CREDENTIALS_FORM]: FormTypes.SageIntactCredentialsForm;
[ONYXKEYS.FORMS.NETSUITE_CUSTOM_FIELD_FORM]: FormTypes.NetSuiteCustomFieldForm;
[ONYXKEYS.FORMS.NETSUITE_CUSTOM_LIST_ADD_FORM]: FormTypes.NetSuiteCustomFieldForm;
@@ -702,6 +714,7 @@ type OnyxCollectionValuesMapping = {
[ONYXKEYS.COLLECTION.SHARED_NVP_PRIVATE_EXPENSIFY_CARD_SETTINGS]: OnyxTypes.ExpensifyCardSettings;
[ONYXKEYS.COLLECTION.WORKSPACE_CARDS_LIST]: OnyxTypes.WorkspaceCardsList;
[ONYXKEYS.COLLECTION.SHARED_NVP_EXPENSIFY_CARD_CONTINUOUS_RECONCILIATION_CONNECTION]: OnyxTypes.BankAccount;
+ [ONYXKEYS.COLLECTION.SHARED_NVP_EXPENSIFY_CARD_USE_CONTINUOUS_RECONCILIATION]: boolean;
};
type OnyxValuesMapping = {
@@ -808,6 +821,7 @@ type OnyxValuesMapping = {
[ONYXKEYS.MAX_CANVAS_HEIGHT]: number;
[ONYXKEYS.MAX_CANVAS_WIDTH]: number;
[ONYXKEYS.ONBOARDING_PURPOSE_SELECTED]: string;
+ [ONYXKEYS.ONBOARDING_ERROR_MESSAGE]: string;
[ONYXKEYS.ONBOARDING_POLICY_ID]: string;
[ONYXKEYS.ONBOARDING_ADMINS_CHAT_REPORT_ID]: string;
[ONYXKEYS.IS_SEARCHING_FOR_REPORTS]: boolean;
diff --git a/src/ROUTES.ts b/src/ROUTES.ts
index e93634e5fe80..001fba86e934 100644
--- a/src/ROUTES.ts
+++ b/src/ROUTES.ts
@@ -36,7 +36,7 @@ const ROUTES = {
ALL_SETTINGS: 'all-settings',
- SEARCH: {
+ SEARCH_CENTRAL_PANE: {
route: '/search/:query',
getRoute: (searchQuery: SearchQuery, queryParams?: AuthScreensParamList['Search_Central_Pane']) => {
const {sortBy, sortOrder} = queryParams ?? {};
@@ -61,8 +61,8 @@ const ROUTES = {
},
TRANSACTION_HOLD_REASON_RHP: {
- route: 'search/:query/hold/:transactionID',
- getRoute: (query: string, transactionID: string) => `search/${query}/hold/${transactionID}` as const,
+ route: 'search/:query/hold',
+ getRoute: (query: string) => `search/${query}/hold` as const,
},
// This is a utility route used to go to the user's concierge chat, or the sign-in page if the user's not authenticated
@@ -866,6 +866,14 @@ const ROUTES = {
route: 'settings/workspaces/:policyID/expensify-card/:cardID',
getRoute: (policyID: string, cardID: string, backTo?: string) => getUrlWithBackToParam(`settings/workspaces/${policyID}/expensify-card/${cardID}`, backTo),
},
+ WORKSPACE_EXPENSIFY_CARD_NAME: {
+ route: 'settings/workspaces/:policyID/expensify-card/:cardID/edit/name',
+ getRoute: (policyID: string, cardID: string) => `settings/workspaces/${policyID}/expensify-card/${cardID}/edit/name` as const,
+ },
+ WORKSPACE_EXPENSIFY_CARD_LIMIT: {
+ route: 'settings/workspaces/:policyID/expensify-card/:cardID/edit/limit',
+ getRoute: (policyID: string, cardID: string) => `settings/workspaces/${policyID}/expensify-card/${cardID}/edit/limit` as const,
+ },
WORKSPACE_EXPENSIFY_CARD_ISSUE_NEW: {
route: 'settings/workspaces/:policyID/expensify-card/issue-new',
getRoute: (policyID: string) => `settings/workspaces/${policyID}/expensify-card/issue-new` as const,
diff --git a/src/SCREENS.ts b/src/SCREENS.ts
index 3cd064089606..eddf11d95e4f 100644
--- a/src/SCREENS.ts
+++ b/src/SCREENS.ts
@@ -351,7 +351,9 @@ const SCREENS = {
RATE_AND_UNIT_UNIT: 'Workspace_RateAndUnit_Unit',
EXPENSIFY_CARD: 'Workspace_ExpensifyCard',
EXPENSIFY_CARD_DETAILS: 'Workspace_ExpensifyCard_Details',
+ EXPENSIFY_CARD_LIMIT: 'Workspace_ExpensifyCard_Limit',
EXPENSIFY_CARD_ISSUE_NEW: 'Workspace_ExpensifyCard_New',
+ EXPENSIFY_CARD_NAME: 'Workspace_ExpensifyCard_Name',
EXPENSIFY_CARD_BANK_ACCOUNT: 'Workspace_ExpensifyCard_BankAccount',
BILLS: 'Workspace_Bills',
INVOICES: 'Workspace_Invoices',
diff --git a/src/components/AvatarWithImagePicker.tsx b/src/components/AvatarWithImagePicker.tsx
index 15a004ba9b87..919a4a67ebc6 100644
--- a/src/components/AvatarWithImagePicker.tsx
+++ b/src/components/AvatarWithImagePicker.tsx
@@ -1,4 +1,4 @@
-import React, {useEffect, useRef, useState} from 'react';
+import React, {useCallback, useEffect, useRef, useState} from 'react';
import {StyleSheet, View} from 'react-native';
import type {ImageStyle, StyleProp, ViewStyle} from 'react-native';
import useLocalize from '@hooks/useLocalize';
@@ -195,15 +195,15 @@ function AvatarWithImagePicker({
/**
* Check if the attachment extension is allowed.
*/
- const isValidExtension = (image: FileObject): boolean => {
+ const isValidExtension = useCallback((image: FileObject): boolean => {
const {fileExtension} = FileUtils.splitExtensionFromFileName(image?.name ?? '');
return CONST.AVATAR_ALLOWED_EXTENSIONS.some((extension) => extension === fileExtension.toLowerCase());
- };
+ }, []);
/**
* Check if the attachment size is less than allowed size.
*/
- const isValidSize = (image: FileObject): boolean => (image?.size ?? 0) < CONST.AVATAR_MAX_ATTACHMENT_SIZE;
+ const isValidSize = useCallback((image: FileObject): boolean => (image?.size ?? 0) < CONST.AVATAR_MAX_ATTACHMENT_SIZE, []);
/**
* Check if the attachment resolution matches constraints.
@@ -216,37 +216,40 @@ function AvatarWithImagePicker({
/**
* Validates if an image has a valid resolution and opens an avatar crop modal
*/
- const showAvatarCropModal = (image: FileObject) => {
- if (!isValidExtension(image)) {
- setError('avatarWithImagePicker.notAllowedExtension', {allowedExtensions: CONST.AVATAR_ALLOWED_EXTENSIONS});
- return;
- }
- if (!isValidSize(image)) {
- setError('avatarWithImagePicker.sizeExceeded', {maxUploadSizeInMB: CONST.AVATAR_MAX_ATTACHMENT_SIZE / (1024 * 1024)});
- return;
- }
-
- isValidResolution(image).then((isValid) => {
- if (!isValid) {
- setError('avatarWithImagePicker.resolutionConstraints', {
- minHeightInPx: CONST.AVATAR_MIN_HEIGHT_PX,
- minWidthInPx: CONST.AVATAR_MIN_WIDTH_PX,
- maxHeightInPx: CONST.AVATAR_MAX_HEIGHT_PX,
- maxWidthInPx: CONST.AVATAR_MAX_WIDTH_PX,
- });
+ const showAvatarCropModal = useCallback(
+ (image: FileObject) => {
+ if (!isValidExtension(image)) {
+ setError('avatarWithImagePicker.notAllowedExtension', {allowedExtensions: CONST.AVATAR_ALLOWED_EXTENSIONS});
+ return;
+ }
+ if (!isValidSize(image)) {
+ setError('avatarWithImagePicker.sizeExceeded', {maxUploadSizeInMB: CONST.AVATAR_MAX_ATTACHMENT_SIZE / (1024 * 1024)});
return;
}
- setIsAvatarCropModalOpen(true);
- setError(null, {});
- setIsMenuVisible(false);
- setImageData({
- uri: image.uri ?? '',
- name: image.name ?? '',
- type: image.type ?? '',
+ isValidResolution(image).then((isValid) => {
+ if (!isValid) {
+ setError('avatarWithImagePicker.resolutionConstraints', {
+ minHeightInPx: CONST.AVATAR_MIN_HEIGHT_PX,
+ minWidthInPx: CONST.AVATAR_MIN_WIDTH_PX,
+ maxHeightInPx: CONST.AVATAR_MAX_HEIGHT_PX,
+ maxWidthInPx: CONST.AVATAR_MAX_WIDTH_PX,
+ });
+ return;
+ }
+
+ setIsAvatarCropModalOpen(true);
+ setError(null, {});
+ setIsMenuVisible(false);
+ setImageData({
+ uri: image.uri ?? '',
+ name: image.name ?? '',
+ type: image.type ?? '',
+ });
});
- });
- };
+ },
+ [isValidExtension, isValidSize],
+ );
const hideAvatarCropModal = () => {
setIsAvatarCropModalOpen(false);
@@ -302,61 +305,26 @@ function AvatarWithImagePicker({
});
}, [isMenuVisible, windowWidth]);
+ const onPressAvatar = useCallback(
+ (openPicker: OpenPicker) => {
+ if (isUsingDefaultAvatar) {
+ openPicker({
+ onPicked: showAvatarCropModal,
+ });
+ return;
+ }
+ if (disabled && enablePreview && onViewPhotoPress) {
+ onViewPhotoPress();
+ return;
+ }
+ setIsMenuVisible((prev) => !prev);
+ },
+ [disabled, enablePreview, isUsingDefaultAvatar, onViewPhotoPress, showAvatarCropModal],
+ );
+
return (
-
-
- {
- if (disabled && enablePreview && onViewPhotoPress) {
- onViewPhotoPress();
- return;
- }
- setIsMenuVisible((prev) => !prev);
- }}
- accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
- accessibilityLabel={translate('avatarWithImagePicker.editImage')}
- disabled={isAvatarCropModalOpen || (disabled && !enablePreview)}
- disabledStyle={disabledStyle}
- style={[styles.pRelative, avatarStyle, type === CONST.ICON_TYPE_AVATAR && styles.alignSelfCenter]}
- ref={anchorRef}
- >
-
- {source ? (
-
- ) : (
-
- )}
-
- {!disabled && (
-
-
-
- )}
-
-
- setIsMenuVisible(false)}
- onItemSelected={(item, index) => {
- setIsMenuVisible(false);
- // In order for the file picker to open dynamically, the click
- // function must be called from within an event handler that was initiated
- // by the user on Safari.
- if (index === 0 && Browser.isSafari()) {
- openPicker({
- onPicked: showAvatarCropModal,
- });
- }
- }}
- menuItems={menuItems}
- anchorPosition={shouldUseStyleUtilityForAnchorPosition ? styles.popoverMenuOffset(windowWidth) : popoverPosition}
- anchorAlignment={{horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT, vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP}}
- withoutOverlay
- anchorRef={anchorRef}
- />
+ <>
+
+
+ onPressAvatar(openPicker)}
+ accessibilityRole={CONST.ACCESSIBILITY_ROLE.IMAGEBUTTON}
+ accessibilityLabel={translate('avatarWithImagePicker.editImage')}
+ disabled={isAvatarCropModalOpen || (disabled && !enablePreview)}
+ disabledStyle={disabledStyle}
+ style={[styles.pRelative, avatarStyle, type === CONST.ICON_TYPE_AVATAR && styles.alignSelfCenter]}
+ ref={anchorRef}
+ >
+
+ {source ? (
+
+ ) : (
+
+ )}
+
+ {!disabled && (
+
+
+
+ )}
+
+
+
+ setIsMenuVisible(false)}
+ onItemSelected={(item, index) => {
+ setIsMenuVisible(false);
+ // In order for the file picker to open dynamically, the click
+ // function must be called from within an event handler that was initiated
+ // by the user on Safari.
+ if (index === 0 && Browser.isSafari()) {
+ openPicker({
+ onPicked: showAvatarCropModal,
+ });
+ }
+ }}
+ menuItems={menuItems}
+ anchorPosition={shouldUseStyleUtilityForAnchorPosition ? styles.popoverMenuOffset(windowWidth) : popoverPosition}
+ anchorAlignment={{horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT, vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.TOP}}
+ withoutOverlay
+ anchorRef={anchorRef}
+ />
+ >
);
}}
diff --git a/src/components/Checkbox.tsx b/src/components/Checkbox.tsx
index 5445816f067b..6da170da3a67 100644
--- a/src/components/Checkbox.tsx
+++ b/src/components/Checkbox.tsx
@@ -44,6 +44,9 @@ type CheckboxProps = Partial & {
/** An accessibility label for the checkbox */
accessibilityLabel: string;
+
+ /** stop propagation of the mouse down event */
+ shouldStopMouseDownPropagation?: boolean;
};
function Checkbox(
@@ -60,6 +63,7 @@ function Checkbox(
caretSize = 14,
onPress,
accessibilityLabel,
+ shouldStopMouseDownPropagation,
}: CheckboxProps,
ref: ForwardedRef,
) {
@@ -89,7 +93,12 @@ function Checkbox(
{
+ if (shouldStopMouseDownPropagation) {
+ e.stopPropagation();
+ }
+ onMouseDown?.(e);
+ }}
ref={ref}
style={[StyleUtils.getCheckboxPressableStyle(containerBorderRadius + 2), style]} // to align outline on focus, border-radius of pressable should be 2px more than Checkbox
onKeyDown={handleSpaceKey}
diff --git a/src/components/Onfido/BaseOnfidoWeb.tsx b/src/components/Onfido/BaseOnfidoWeb.tsx
index 703bb5a5b14e..d1c784c078bf 100644
--- a/src/components/Onfido/BaseOnfidoWeb.tsx
+++ b/src/components/Onfido/BaseOnfidoWeb.tsx
@@ -27,9 +27,11 @@ function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLo
token: sdkToken,
containerId: CONST.ONFIDO.CONTAINER_ID,
customUI: {
- fontFamilyTitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
- fontFamilySubtitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
- fontFamilyBody: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
+ // Font styles are commented out until Onfido fixes it on their side, more info here - https://github.com/Expensify/App/issues/44570
+ // For now we will use Onfido default font which is better than random serif font which it started defaulting to
+ // fontFamilyTitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
+ // fontFamilySubtitle: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
+ // fontFamilyBody: `${FontUtils.fontFamily.platform.EXP_NEUE}, -apple-system, serif`,
fontSizeTitle: `${variables.fontSizeLarge}px`,
fontWeightTitle: Number(FontUtils.fontWeight.bold),
fontWeightSubtitle: 400,
diff --git a/src/components/QRShare/index.tsx b/src/components/QRShare/index.tsx
index 8468b6dde1d8..9023773e8635 100644
--- a/src/components/QRShare/index.tsx
+++ b/src/components/QRShare/index.tsx
@@ -7,16 +7,21 @@ import ExpensifyWordmark from '@assets/images/expensify-wordmark.svg';
import ImageSVG from '@components/ImageSVG';
import QRCode from '@components/QRCode';
import Text from '@components/Text';
+import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useTheme from '@hooks/useTheme';
import useThemeStyles from '@hooks/useThemeStyles';
+import useWindowDimensions from '@hooks/useWindowDimensions';
import variables from '@styles/variables';
import type {QRShareHandle, QRShareProps} from './types';
function QRShare({url, title, subtitle, logo, svgLogo, svgLogoFillColor, logoBackgroundColor, logoRatio, logoMarginRatio}: QRShareProps, ref: ForwardedRef) {
const styles = useThemeStyles();
const theme = useTheme();
+ const {isSmallScreenWidth} = useResponsiveLayout();
+ const {windowWidth} = useWindowDimensions();
+ const qrCodeContainerWidth = isSmallScreenWidth ? windowWidth : variables.sideBarWidth;
- const [qrCodeSize, setQrCodeSize] = useState();
+ const [qrCodeSize, setQrCodeSize] = useState(qrCodeContainerWidth - styles.ph5.paddingHorizontal * 2 - variables.qrShareHorizontalPadding * 2);
const svgRef = useRef