microsoft / microsoft/ALAppExtensions

[W1][Report][6699][Move Negative Sales Lines] Replace FromDocType, ToDocType, and ToDocType2 Option variables with extensible Enums

Open
#30,348 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enum-request SCM
Dominant language
AL
Stars
988
Forks
692
Avg merge
49m
Merged PRs (30d)
1

Description

Why do you need this change?

The Move Negative Sales Lines report uses the global variables FromDocType, ToDocType, and ToDocType2, all of which are of type Option to determine the supported document types.

Since Option variables are not extensible, partners and ISVs cannot introduce additional document types through a report extension. This forces direct Base Application modifications for scenarios that should otherwise be supported through extensibility.

Replacing these option variables with extensible enums would enable extension-based customizations while preserving the existing report behavior.

Describe the request

Our extension introduces additional sales document types that need to participate in the Move Negative Sales Lines process.

The report determines the source and destination document types using the global option variables FromDocType, ToDocType, and ToDocType2. Because these are Option variables, there is currently no supported way to add new document types through a report extension.

Replacing these variables with extensible enums would provide a supported extensibility point, allowing partners and ISVs to extend the report without requiring Base Application customizations.
Internal work item: AB#642554

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Move Negative Sales Lines report and inspect the declarations and uses of FromDocType, ToDocType, and ToDocType2. Confirm that the change preserves existing report behavior while allowing additional document types through report extensions; the issue does not name a specific file or test.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.