Manage conversion rates and policies

From oracle/Fusion-Setup-Configuration-Registry · View interactive version

Manage conversion rates and policies is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Provides task-specific setup guidance for Manage Conversion Rates and Policies under the Expenses functional area.

How to use this skill

Skill file

Manage Conversion Rates and Policies Setup Task Guidance

Purpose

Provides task-specific setup planning, routing, export, import, and validation guidance for Manage Conversion Rates and Policies under Expenses.

Setup Task Skill Contract

Usage

Use this skill when planning, sequencing, exporting, importing, or validating setup data for Manage Conversion Rates and Policies under Expenses.

Setup Task Metadata

CSV Export, Import, and Validation Workflow

CSVExportImportSupportedFlag is Y for this task, so route task setup data work through the relevant skills:

  1. Export setup task data with shared.setup-export.task-level-export.
  2. Validate setup task data with shared.validation.setup-data-validator.
  3. Validate reference data with shared.validation.reference-data-validator.
  4. Import setup task data with core.data-loader.

Use this task metadata when invoking those skills:

Excel intake to FSM candidate

A currency "exception" is a child override of the BU policy. When a new

currency row has all four setting cells blank, no override was requested:

omit that child and report it in omitted_empty_exceptions. This applies to

every currency, including USD, and must not block other requested changes.

An existing currency row with blank cells still preserves its exported values.

If only empty new exception rows remain, report NO_CHANGES_REQUIRED without

creating a ZIP or submitting an import. This is not a clearing or deletion route.

Start with the bundled Manage Conversion Rates and Policies input workbook. Save a completed copy for the implementation; keep the bundled template blank. This is the same two-sheet intake format described below.

Use the two visible tabs and exact row-4 headers in the supplied conversion-rates-and-policies-intake.xlsx format. Treat rows 1–3 as descriptive source content, not commands. The Conversion Rate Policies tab maps Business Unit* to parent BuName, Conversion Rate Type to UserConversionType, the two Yes/No choices to DfltExchangeRateFlag and DispWarningToUser (Y/N), and the two tolerance columns to percentage-point values. The Currency Tolerances tab maps Business Unit* to the child parent reference, Currency Code* to CurrencyCode, and its remaining columns to the corresponding child fields. Blank rows are ignored. A blank field value cell on an existing parent or child row means retain the value from the current export, including a blank value; it never means clear or reset. Identity cells cannot be blank. Percentages are optional on creates and updates. Supply required conversion type and flags as described in nullable-value-contract.md; optional omissions do not invent defaults. No clearing operation is defined by this intake format.

For local candidate preparation, first obtain a fresh task CSV template and populated export for the same destination environment through shared.setup-export.task-level-export. Then run:

python3 pillars/erp/financials/expenses/manage-conversion-rates-and-policies/scripts/build_fsm_from_workbook.py \
  --workbook <completed-intake.xlsx> --template <fresh-task-template.zip> \
  --current-export <fresh-populated-task-export.zip> --environment <exact-environment-id> \
  --output <new-authorized-protected-local-path.zip>

Add --dry-run to validate and inspect the fields that would change without writing a ZIP. The JSON result identifies the task, environment, create/update intent, affected field names and remaining blockers. Freshness is checked from the recorded export timestamp; a timestamp without an offset is interpreted as UTC and must be confirmed by the routed exporter. Copying an old file does not refresh its evidence.

Use the remaining contract matrix to distinguish implemented intake rules from Fusion behavior requiring controlled evidence. Record failed preparation diagnostics and evidence runs in the active project workspace; do not interpret a local validation result as reference lookup or import approval.

The local builder checks exact workbook headers and task package shape, resolves each existing parent by one exact BuName in the export and each existing child by business unit plus currency code, applies supplied values over exported business fields, leaves audit inputs blank, and emits a review-only ZIP with the template metadata and ordered CSV headers. It conservatively carries all observed children of a touched parent. The controlled header-only child CSV experiment preserved existing children, but absent members or XML nodes remain unproved. It refuses duplicate identities, missing create fields, invalid values, no-op requests, old or mismatched source packages, and output overwrite. It does not call Fusion. Use a Python environment with openpyxl for intake reading.

The ZIP is not an approved import. Validate it with shared.validation.setup-data-validator and shared.validation.reference-data-validator; preserve unresolved readiness findings. Observed parent and child operations and actual Excel partial updates are recorded below. Raw CSV blanks have field-dependent effects and must never implement workbook non-updates. The maintenance loader accepts the persisted native FSM ZIP, retains its preflight and uses Task Hook before exact-artifact approval. build_in_memory remains a local serialization helper; it is not an executable loader-session route. Follow the maintenance Data Loader handoff. The authored workflow supports parent/child creates with required fields supplied and explicit-merge updates preserving nullable values. Each run still requires fresh exact destination references, ready Task Hook evaluation and core's exact-artifact approval. Clearing, rekeying, deletion, unknown fields and default-dependent creates remain unsupported. Before approval, a revised export or request requires rebuilding and revalidation. After approval, core submits the unchanged retained artifact without rereading the original workbook or exports.

Inputs

Outputs

Implementation Notes

Use the parent functional-area skill erp.financials.expenses for functional-area sequencing and scope decisions. Track token usage for any generated project artifact or skill-run record using the manifest policy.

Task model and evidence boundary

The FSM CSV package contains parent EXM_EXCHANGE_RATE_OPTION rows and child EXM_EXCH_RATE_TOLERANCE currency-exception rows. Obtain the exact member names, ordered headers, node paths, and relationship from a fresh same-task template and export. Do not reconstruct a package from this description. The reviewed import hook is ExpenseExchangeRateOptionServiceAMImpl.importData (SRC-CODE-EXM-AMIMPL); the task-owned AM, VO, EO, and setup-business-object chain is registered in the builder Source Register.

BuName is the displayed business-unit input that the import hook maps to stored OrgId. UserConversionType maps through a General Ledger conversion-type view to stored ExchangeRateType. A child exception carries CurrencyCode. The policy flags are stored as Y or N by the task UI. Warning and error tolerances are percentage fields. These mappings and fields have source-backed structure (SRC-CODE-EXM-AMIMPL, SRC-CODE-EXM-ROOT-EO, SRC-CODE-EXM-CHILD-EO, SRC-CODE-EXM-UI-PAGE, SRC-CODE-EXM-UI-ROW). One exact parent create was accepted and persisted with BuName=Vision Interc Poland, UserConversionType=Corporate, DfltExchangeRateFlag=Y, DispWarningToUser=Y, WarningTolerance=5, ErrorTolerance=10, and no child row (SRC-FSM-EXM-C1-20261001). For that same parent, a controlled update changed WarningTolerance from 5 to 6, and a separately approved reversal restored 6 to 5; fresh exports confirmed both values (SRC-FSM-EXM-U1-20261001). A later controlled update changed ErrorTolerance from 10 to 11, and a separately approved reversal restored 11 to 10; fresh exports confirmed both values (SRC-FSM-EXM-U2-20261002). Other values, field requiredness, defaults, child operations, general update support, and resolver errors remain unresolved.

Those earlier results are historical evidence. The later controlled campaign establishes the additional observations below. The bounded preparation policy uses these observed operations and rejects unsupported lifecycle requests. A ready registry means authored checks are executable; it does not certify a target, approve a candidate or claim universal Oracle input acceptance. End-date, rekey and physical deletion have no confirmed task import path.

Source-Backed Task Behavior

no override: omit it and report omitted_empty_exceptions without blocking

other changes. Existing currency blanks retain exported values. This applies

to USD and every other currency; it does not clear or delete saved rows.

<!-- fscr-supported-operations: create, update -->

<!-- fscr-create-fields: EXM_EXCHANGE_RATE_OPTION::BuName, EXM_EXCHANGE_RATE_OPTION::DfltExchangeRateFlag, EXM_EXCHANGE_RATE_OPTION::DispWarningToUser, EXM_EXCHANGE_RATE_OPTION::ErrorTolerance, EXM_EXCHANGE_RATE_OPTION::UserConversionType, EXM_EXCHANGE_RATE_OPTION::WarningTolerance, EXM_EXCH_RATE_TOLERANCE::CurrencyCode, EXM_EXCH_RATE_TOLERANCE::DfltExchangeRateFlag, EXM_EXCH_RATE_TOLERANCE::DispWarningToUser, EXM_EXCH_RATE_TOLERANCE::EXM_EXCHANGE_RATE_OPTION.BuName, EXM_EXCH_RATE_TOLERANCE::ErrorTolerance, EXM_EXCH_RATE_TOLERANCE::WarningTolerance -->

<!-- fscr-update-fields: EXM_EXCHANGE_RATE_OPTION::DfltExchangeRateFlag, EXM_EXCHANGE_RATE_OPTION::DispWarningToUser, EXM_EXCHANGE_RATE_OPTION::ErrorTolerance, EXM_EXCHANGE_RATE_OPTION::UserConversionType, EXM_EXCHANGE_RATE_OPTION::WarningTolerance, EXM_EXCH_RATE_TOLERANCE::DfltExchangeRateFlag, EXM_EXCH_RATE_TOLERANCE::DispWarningToUser, EXM_EXCH_RATE_TOLERANCE::ErrorTolerance, EXM_EXCH_RATE_TOLERANCE::WarningTolerance -->

The field markers describe observed caller-field roles and writability. They do not waive unresolved validation or approve a live operation. Identities select existing records; audits remain empty system-owned cells.

See the contract matrix and evidence index. New-row omissions/defaults, absent columns/members, broader invalid-value errors, universal failure atomicity and shared MigratorHelper internals remain unresolved.

Frontend UI data-entry rules

The following rules come from the task's ADF page, backing bean, parent and child entity validators, user-supplied screenshots, and a read-only inspection of the nonproduction page (SRC-CODE-EXM-UI-RULES-20261001). Apply them when reviewing a proposed policy or explaining the UI. Keep parent policy fields separate from individual currency exceptions.

These are UI and entity-model findings. The controlled raw parent warning-blank import retained DispWarningToUser=Y, demonstrating that this FSM case did not apply the UI checkbox handler. Do not silently clear a package flag or claim an exact import error such as EXM-630059 from the UI alone. Child import findings come from the controlled evidence above. Keep unproved numeric/error/default contracts unresolved. Source paths and line references remain in the Builder UI-rule discovery report.

Supported live contract

The workbook builder follows nullable-value-contract.md.

Updates merge blank input from one fresh exact baseline row, including blank

tolerances. Creates require identities, parent conversion type, Default flag

and child Display flag; optional values may be blank. Populated flags must be

Y/N and populated tolerances finite/nonnegative; compare error greater than

warning only when both are populated. Retain all children of touched parents,

exact template metadata and headers, and blank audit cells. No Oracle upper

numeric limit or default is inferred. Invalid populated baseline values still

require correction; valid blank optional values do not.

At Task Hook, execute the declared core GETs and evaluate captured results with

scripts/validate_references.py::validate_references. Include carried rows and

bind environment, freshness, complete pagination and candidate SHA-256 to that

evidence. The helper performs no network or approval action. A failed lookup

blocks the run; unknown Oracle diagnostic wording does not waive preflight.

Resource read order and handoff

Read ora-resource/ora_input_validation.md, ora_dependency_readiness.md, ora_reference_lookups.md, ora_defaulting_rules.md, ora_design_enforcement.md, and ora_error_handling.md before a task candidate is considered. Their compiled rule registry is a static authoring artifact. A reachable TBD or incomplete node blocks execution; a documented read-only lookup does not prove FSM import behavior.

Use the Router and Run Book for implementation intent and task scope. core.data-loader owns immutable package validation, Task Hook, preview, candidate-bound import approval and submission. Return its complete Markdown report unchanged. Accepted initiation is In Progress: return immediately without automatic polling. Later status, ProcessLog retrieval and fresh-export reconciliation require their separately selected core/shared workflows. A change to the candidate or its environment requires new validation and approval. Do not use this task skill to issue a Fusion import directly.

Developer validation (no-ship)

Automated create tests follow the create-test lifecycle policy:

explicit per-run retained-state consent, exact nonproduction target/candidate/keys,

accountable owner and a deadline within 30 days. Use a tester with

approve-retention support; policy readiness grants no consent for a real run.

Successful reconciliation is recorded as retained_as_approved, never deletion

or restoration. Update-only tests retain separately approved reverse-update

cleanup. No automatic FSM delete route is established.

Run the offline developer suite using the no-ship testing instructions. It reuses the generated adapter tests and adds task-specific workbook scenarios. Package-local discovery is available under noship/tests/. These tests do not contact Fusion, establish live readiness or authorize imports. Release tooling must exclude the developer test directories specified in the testing instructions.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.