Description:
When iterating through {#oco.costItems} to display the budget code, the OCO number is repeated for each cost item, even if they belong to the same change order. This leads to redundant data in the report.
Example Use Case:
For an OCO with multiple cost items, the current output is:
{#oco.costItems} {oco.number} - {budgetCode.formatted} {/oco.costItems}
Which results in:
OCO-001 - BGT-1234
OCO-001 - BGT-5678
It would be more efficient and create a cleaner report if there were a way to consolidate or select a primary budget code. A new function or variable could allow for this, for example:
A variable that returns a comma-separated list of all budget codes for a single OCO.
A variable that returns only the first or primary budget code for the OCO.
This would significantly improve the readability of templates that need to show budget codes for change orders.