Skip to content

R2 PSA: Advanced page (PSA branch) #89441

@yuwenmemon

Description

@yuwenmemon

Parent: Expensify/Expensify#589894
Design doc: https://docs.google.com/document/d/1qQXU4EIij-OyCpk6z8idi0ch0rP4XtIQ0770STZeF5E/edit

Scope

Branch CertiniaAdvancedPage to render PSA-specific toggles when hasPSA === true — Tax Non-Billable and Export Foreign Currency Amount — replacing the FFA Sync Reimbursed Reports row. Auto Sync remains for both modules.

Implementation notes (from design doc)

CertiniaAdvancedPage.tsx — Add PSA conditional rendering

Auto Sync row remains at the top for both modules.

If hasPSA === true, replace the Sync Reimbursed Reports row with:

  1. Export Tax as Non-Billable: ToggleSettingOptionRow. isActive={!!config?.advanced?.taxNonBillable}. onToggle={(enabled) => updateFinancialForceTaxNonBillable(policyID, enabled)}. Subtitle: "When enabled, tax is marked as non-billable on export to PSA."

  2. Export Foreign Currency Amount: ToggleSettingOptionRow. isActive={!!config?.advanced?.exportForeignCurrency}. onToggle={(enabled) => updateFinancialForceExportForeignCurrency(policyID, enabled)}. Subtitle: "When disabled, expenses are converted to the report currency before export."

Tests

  • PSA advanced page: Auto Sync + Tax Non-Billable + Export Foreign Currency — no Sync Reimbursed Reports.
  • FFA advanced page renders the original Release 1 content unchanged.
  • Both new toggles fire the corresponding actions with pending indicator and revert on simulated failure.
Issue OwnerCurrent Issue Owner: @ChavdaSachin

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions