[Bug]: Different protected variable name between w1 and IT in report Calculate Depreciation
Nobody has claimed this yet.
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Describe the issue
The Calculate Depreciation report exposes different protected variable names between the W1 application and the IT localization.
In the W1 version of the report, the protected variable is named:
PostingDescription
However, in the IT localization, the corresponding variable is named:
PostingDescriptionTxt.
This inconsistency creates issues for report extensions that rely on protected variables. An extension developed against W1 cannot be compiled or reused against the IT localization without code changes.
For protected variables that are intended to be consumed by extensions, the naming should be consistent across the base application and localizations.
Expected behavior
The Calculate Depreciation report should expose the same protected variable name in both W1 and IT localization layers.
For example, the IT localization should use PostingDescription, matching the W1 implementation, or provide a backward-compatible approach that ensures extension compatibility across versions.
Steps to reproduce
- Create a report extension for Calculate Depreciation.
- Access the protected variable
PostingDescription. - Publish the extension against a W1 environment.
- Publish the same extension against an IT localization environment.
- Observe that the variable name differs (
PostingDescriptionvsPostingDescriptionTxt), causing compatibility issues.
Additional context
This appears to be an inconsistency between the W1 application and the IT localization implementation of the same report.
Having different names for equivalent protected variables makes it harder to create reusable extensions that work across localized versions of Business Central.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the W1 and IT implementations of the Calculate Depreciation report and compare the protected variable declarations, especially PostingDescription and PostingDescriptionTxt. Done means the localized report exposes a consistent protected variable name or a documented backward-compatible approach, while preserving report-extension compatibility.
Written by the indexing model from the issue text.
Assessment
- Domain
- localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100