Skip to content

Search - Distinguish accounting exports from export templates with the same name #107372

Todo

Description

@ishpaul777

Problem

The Exported to Search filter cannot distinguish an accounting integration from an export template with the same name. For example, exporting a report through a custom template named NetSuite makes it match exportedTo:NetSuite, even if the report has never actually been exported or manually marked as exported to the NetSuite accounting integration.

Consequently, -exportedTo:NetSuite hides template-only reports. This also prevents those reports from being selected for bulk Mark as exported to NetSuite from that filtered view.

Steps to reproduce

  1. Use a workspace connected to NetSuite and an export template named exactly NetSuite.
  2. Export an otherwise eligible expense report through that template only; do not export or manually mark it as exported to the accounting integration.
  3. Search for the report using exportedTo:NetSuite.
  4. Search again using -exportedTo:NetSuite.

Actual result

The template-only report matches the positive accounting-destination filter and is excluded by the negative filter because the names match.

Expected result

  • Accounting-destination filters distinguish actual/manual accounting exports from template exports, even when their names are identical.
  • Users can separately search for exports through the same-named template.
  • The picker lets users distinguish the integration from the template without exposing implementation-specific prefixes in display names.

Acceptance criteria

  • exportedTo:NetSuite matches actual NetSuite exports and reports manually marked as exported to NetSuite, but not template-only exports.
  • -exportedTo:NetSuite retains template-only reports while excluding actual/manual NetSuite exports.
  • A separate template selection returns reports exported through the template named NetSuite.
  • Picker selections and saved/reopened searches preserve the distinction.
  • Regression coverage includes template-only, accounting-only, manual-mark-only, both kinds of export, and no-export reports.
  • Other accounting destinations and templates without naming collisions continue to work.

Workaround

For bulk Mark as exported to NetSuite, remove -exportedTo:NetSuite while retaining the workspace and other desired filters. Reports already actually exported or manually marked as exported to NetSuite should still be skipped by the bulk action.

Verification status

Filed from the reported behavior; not independently reproduced during issue creation. This tracks the Search distinction separately from bulk-marking eligibility.

Issue OwnerCurrent Issue Owner: @ishpaul777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ReviewingWeekly

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions