> For the complete documentation index, see [llms.txt](https://kb.theloops.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.theloops.io/agentstudio/skills-library/projects/check-forecast-spread-completeness.md). Agents can also search and read this documentation through its [MCP server](https://kb.theloops.io/~gitbook/mcp).

# Check Forecast Spread Completeness

For one project forecast line, reads spread totals, period rows, accounting periods and profile gate fields to support a COMPLETE / INCOMPLETE / INVALID\_PERIODS verdict. Read-only.

| Business area | Action type |
| ------------- | ----------- |
| Projects      | Read-only   |

## Overview

A project forecast line (ProjectForecastItem) carries an ETC (estimate to complete) that must be distributed over accounting periods (ProjForecastItemPeriod) before the forecast version is reviewed and approved. Periodic EAC and cash-flow reporting is wrong when part of the ETC is left unspread, when amounts sit in periods before the forecast cut-off period, or when the line is spread with a profile that no longer exists.

The IFS Cloud integration reads project forecast line spread data and profile eligibility.

## How it works

{% stepper %}
{% step %}
Get Forecast Line Spread Header: 404 stops, note isSnapshotLine.
{% endstep %}

{% step %}
List Forecast Line Spread Periods.
{% endstep %}

{% step %}
List Valid Accounting Periods for company and period range.
{% endstep %}

{% step %}
Get Forecast Line Amount Breakdown.
{% endstep %}

{% step %}
Check Spread With Profile Eligibility: use gate\_open, failed\_conditions, profile\_exists.
{% endstep %}
{% endstepper %}

## Key capabilities

* Reads one forecast line by its real keys and refuses guessed identifiers.
* Compares Etc with TotalSpreadAmount and UnspreadAmount (base, transaction, base-BF and project currency variants).
* Checks committed-cost spreading (UnspreadCommitted) when SpreadCommittedCostDb is true.
* Detects period rows before the forecast cut-off period (ForecastCutOffAccPeriod) and outside StartDate/EndDate.
* Validates each spread period against ordinary accounting periods of the company (FetchOrdinaryPeriod).
* Flags gaps (missing periods between earliest and latest) and zero or negative period rows.
* Reports CostSpreadDateException, SpreadType, ProfileId and whether the profile still exists.
* Evaluates the SpreadWithProfileCommand enable rule to tell the user if re-spreading is permitted.
* Returns a single verdict with a check table and one next step.

## Requirements

The following IFS Cloud components and projections must be available, with permission sets that grant access to each projection.

| Component | Projection                         |
| --------- | ---------------------------------- |
| PROJBF    | ProjectForecastVersionLineHandling |

## Version compatibility

| Projection                         | Supported IFS Cloud releases |
| ---------------------------------- | ---------------------------- |
| ProjectForecastVersionLineHandling | 24R2, 25R1, 25R2, 26R1, 26R2 |

## Known limitations

* Read-only: does not create, update, or delete IFS Cloud data.
* Requires projection-level security. Permission errors halt the run.
